-
-
Save kford55/388c4abec42d902e08954ff779556e39 to your computer and use it in GitHub Desktop.
New Android lifecycle callbacks for top-resumed
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
protected void onTopResumedActivityChanged(boolean topResumed) { | |
if (topResumed) { | |
// Top Resumed activity | |
// Can be a signal to re-acquire exclusive resources | |
} else { | |
// No longer the top resumed activity | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment