Created
April 11, 2022 00:07
-
-
Save husaynhakeem/34172ecaf1415e6aca473965efb6fe5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ListActivity : AppCompatActivity() { | |
private val splitListener = Consumer<List<SplitInfo>> { splitInfoList -> | |
// React to a split change | |
} | |
override fun onStart() { | |
super.onStart() | |
SplitController | |
.getInstance() | |
.addSplitListener(this, mainExecutor, splitListener) | |
} | |
override fun onStop() { | |
super.onStop() | |
SplitController | |
.getInstance() | |
.removeSplitListener(fabSplitListener) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment