Refactoring

This commit is contained in:
M66B
2021-07-15 18:36:39 +02:00
parent b60da5cf11
commit 34aa1112eb
14 changed files with 89 additions and 56 deletions

View File

@@ -58,7 +58,8 @@ public class ServiceExternal extends Service {
public void onCreate() {
Log.i("Service external create");
super.onCreate();
startForeground(Helper.NOTIFICATION_EXTERNAL, getNotification().build());
startForeground(NotificationHelper.NOTIFICATION_EXTERNAL,
getNotification().build());
}
@Override
@@ -75,7 +76,8 @@ public class ServiceExternal extends Service {
Log.logExtras(intent);
super.onStartCommand(intent, flags, startId);
startForeground(Helper.NOTIFICATION_EXTERNAL, getNotification().build());
startForeground(NotificationHelper.NOTIFICATION_EXTERNAL,
getNotification().build());
if (intent == null)
return START_NOT_STICKY;