File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ Licensed to the Apache Software Foundation (ASF) under one
3838import android .app .NotificationChannel ;
3939import android .net .wifi .WifiManager ;
4040import android .net .wifi .WifiManager .WifiLock ;
41- import android .permission .FOREGROUND_SERVICE_REMOTE_MESSAGING ;
4241
4342import org .json .JSONObject ;
4443
@@ -133,7 +132,7 @@ private void keepAwake()
133132
134133 if (!isSilent ) {
135134 if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .Q )
136- startForeground (NOTIFICATION_ID , makeNotification (), FOREGROUND_SERVICE_TYPE_REMOTE_MESSAGING );
135+ startForeground (NOTIFICATION_ID , makeNotification (), android . permission . FOREGROUND_SERVICE_REMOTE_MESSAGING );
137136 else
138137 startForeground (NOTIFICATION_ID , makeNotification ());
139138 }
You can’t perform that action at this time.
0 commit comments