From 991f1f9eb8d1e7ea0d6d9b69663f88f86823c83f Mon Sep 17 00:00:00 2001 From: gdlbo <41114720+gdlbo@users.noreply.github.com> Date: Mon, 11 Jul 2022 13:13:17 +0300 Subject: [PATCH] Update Globals.java --- app/src/main/java/ru/vtosters/lite/utils/Globals.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/ru/vtosters/lite/utils/Globals.java b/app/src/main/java/ru/vtosters/lite/utils/Globals.java index 4b398f6ec..8ea7a9959 100644 --- a/app/src/main/java/ru/vtosters/lite/utils/Globals.java +++ b/app/src/main/java/ru/vtosters/lite/utils/Globals.java @@ -345,9 +345,7 @@ public class Globals{ } // Network check public static void fixGapps(){ - if(isGmsInstalled()) return; - - if(Build.VERSION.SDK_INT >= 26){ + if(Build.VERSION.SDK_INT >= 26 && !isGmsInstalled()){ NotificationManager notificationManager = (NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE); if(notificationManager.getNotificationChannel("audio_playback_channel") == null){