Skip to content

Instantly share code, notes, and snippets.

@StephenVinouze
Created May 15, 2020 16:39
Show Gist options
  • Save StephenVinouze/6a3bd1a90b14cf4d4dfd9fed00ea86ce to your computer and use it in GitHub Desktop.
Save StephenVinouze/6a3bd1a90b14cf4d4dfd9fed00ea86ce to your computer and use it in GitHub Desktop.
fun Context.isDontKeepActivitiesEnabled(): Boolean =
Settings.Global.getInt(contentResolver, Settings.Global.ALWAYS_FINISH_ACTIVITIES, 0) == 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment