Skip to content

Commit 5bc07b7

Browse files
committed
did not launch chatheadservice if overlay permission is not granted
1 parent 74c08de commit 5bc07b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/HMSolutions/thikrallah/Notification/ThikrService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ public void run() {
605605
vibrate();
606606
}
607607
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
608-
if (!Settings.canDrawOverlays(this)) {
608+
if (Settings.canDrawOverlays(this)) {
609609
Log.d(TAG,"calling chatheadservice");
610610
Intent intentChatHead=new Intent(this.getApplicationContext(), ChatHeadService.class);
611611
intentChatHead.putExtra("thikr", athan);

0 commit comments

Comments
 (0)