mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
show the media managemement prompt at every app launch, if needed
This commit is contained in:
parent
dc5bea69c5
commit
4ab9fcb29d
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
callback(granted)
|
callback(granted)
|
||||||
if (granted && isRPlus()) {
|
if (granted && isRPlus()) {
|
||||||
handlePermission(PERMISSION_MEDIA_LOCATION) {}
|
handlePermission(PERMISSION_MEDIA_LOCATION) {}
|
||||||
if (!mWasMediaManagementPromptShown && (config.appRunCount == 1 || config.appRunCount % 5 == 0)) {
|
if (!mWasMediaManagementPromptShown) {
|
||||||
mWasMediaManagementPromptShown = true
|
mWasMediaManagementPromptShown = true
|
||||||
handleMediaManagementPrompt { }
|
handleMediaManagementPrompt { }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue