Skip to content

Instantly share code, notes, and snippets.

@kford55
Created April 16, 2020 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kford55/388c4abec42d902e08954ff779556e39 to your computer and use it in GitHub Desktop.
Save kford55/388c4abec42d902e08954ff779556e39 to your computer and use it in GitHub Desktop.
New Android lifecycle callbacks for top-resumed
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