Loading play-services-base-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ public class ForegroundServiceContext extends ContextWrapper { NotificationChannel channel = new NotificationChannel("foreground-service", "Foreground Service", NotificationManager.IMPORTANCE_NONE); channel.setLockscreenVisibility(Notification.VISIBILITY_SECRET); channel.setShowBadge(false); channel.setVibrationPattern(new long[0]); channel.setVibrationPattern(new long[] {0}); context.getSystemService(NotificationManager.class).createNotificationChannel(channel); return new Notification.Builder(context, channel.getId()) .setOngoing(true) Loading play-services-core/src/main/java/org/microg/gms/gcm/McsService.java +0 −13 Original line number Diff line number Diff line Loading @@ -329,19 +329,6 @@ public class McsService extends Service implements Handler.Callback { return START_REDELIVER_INTENT; } @RequiresApi(api = Build.VERSION_CODES.O) private Notification buildForegroundNotification() { NotificationChannel channel = new NotificationChannel("foreground-service", "Foreground Service", NotificationManager.IMPORTANCE_LOW); channel.setLockscreenVisibility(Notification.VISIBILITY_SECRET); channel.setShowBadge(false); getSystemService(NotificationManager.class).createNotificationChannel(channel); return new Notification.Builder(this, channel.getId()) .setOngoing(true) .setContentTitle("Running in background") .setSmallIcon(android.R.drawable.stat_notify_sync) .build(); } private void handleSendMessage(Intent intent) { String messageId = intent.getStringExtra(EXTRA_MESSAGE_ID); String collapseKey = intent.getStringExtra(EXTRA_COLLAPSE_KEY); Loading Loading
play-services-base-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ public class ForegroundServiceContext extends ContextWrapper { NotificationChannel channel = new NotificationChannel("foreground-service", "Foreground Service", NotificationManager.IMPORTANCE_NONE); channel.setLockscreenVisibility(Notification.VISIBILITY_SECRET); channel.setShowBadge(false); channel.setVibrationPattern(new long[0]); channel.setVibrationPattern(new long[] {0}); context.getSystemService(NotificationManager.class).createNotificationChannel(channel); return new Notification.Builder(context, channel.getId()) .setOngoing(true) Loading
play-services-core/src/main/java/org/microg/gms/gcm/McsService.java +0 −13 Original line number Diff line number Diff line Loading @@ -329,19 +329,6 @@ public class McsService extends Service implements Handler.Callback { return START_REDELIVER_INTENT; } @RequiresApi(api = Build.VERSION_CODES.O) private Notification buildForegroundNotification() { NotificationChannel channel = new NotificationChannel("foreground-service", "Foreground Service", NotificationManager.IMPORTANCE_LOW); channel.setLockscreenVisibility(Notification.VISIBILITY_SECRET); channel.setShowBadge(false); getSystemService(NotificationManager.class).createNotificationChannel(channel); return new Notification.Builder(this, channel.getId()) .setOngoing(true) .setContentTitle("Running in background") .setSmallIcon(android.R.drawable.stat_notify_sync) .build(); } private void handleSendMessage(Intent intent) { String messageId = intent.getStringExtra(EXTRA_MESSAGE_ID); String collapseKey = intent.getStringExtra(EXTRA_COLLAPSE_KEY); Loading