Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/mumla.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lublin <daniel@lublin.se>2020-04-12 16:38:21 +0300
committerDaniel Lublin <daniel@lublin.se>2020-04-12 16:38:21 +0300
commit1d1e56f1218128ebcff7f6ac72ba3368153fb27b (patch)
tree185b8d324bbe788e1169e5af1f4f4cbd8c968704
parentea9e5f6121fce75e1863ca8b4a499f8456e602ff (diff)
Ditch notification panel first, seems to be necessary
-rw-r--r--app/src/main/java/se/lublin/mumla/service/MumlaService.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/se/lublin/mumla/service/MumlaService.java b/app/src/main/java/se/lublin/mumla/service/MumlaService.java
index c64b3e7..95a2731 100644
--- a/app/src/main/java/se/lublin/mumla/service/MumlaService.java
+++ b/app/src/main/java/se/lublin/mumla/service/MumlaService.java
@@ -490,6 +490,10 @@ public class MumlaService extends HumlaService implements
@Override
public void onOverlayToggled() {
+ // ditch notification shade/panel to make overlay presence/permission request visible
+ Intent close = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
+ getApplicationContext().sendBroadcast(close);
+
if (!mChannelOverlay.isShown()) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (!android.provider.Settings.canDrawOverlays(getApplicationContext())) {
@@ -510,9 +514,6 @@ public class MumlaService extends HumlaService implements
} else {
mChannelOverlay.hide();
}
- // ditch the notification shade so overlay presence is visible
- Intent close = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
- getApplicationContext().sendBroadcast(close);
}
@Override