Skip to content

Commit 1f5463a

Browse files
committed
Fix typos.
1 parent 9820468 commit 1f5463a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/android/ForegroundService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Licensed to the Apache Software Foundation (ASF) under one
3838
import android.app.NotificationChannel;
3939
import android.net.wifi.WifiManager;
4040
import android.net.wifi.WifiManager.WifiLock;
41-
import android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING;
4241

4342
import 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
}

0 commit comments

Comments
 (0)