TestServiceの全体的なリファクタリング #28
|
@ -125,7 +125,7 @@ public class TestService extends Service {
|
||||||
NotificationChannel serviceChannel = new NotificationChannel(
|
NotificationChannel serviceChannel = new NotificationChannel(
|
||||||
BACKGROUND_CHANNEL_ID,
|
BACKGROUND_CHANNEL_ID,
|
||||||
"Foreground Service Channel",
|
"Foreground Service Channel",
|
||||||
NotificationManager.IMPORTANCE_DEFAULT
|
NotificationManager.IMPORTANCE_NONE
|
||||||
);
|
);
|
||||||
NotificationManager manager = getSystemService(NotificationManager.class);
|
NotificationManager manager = getSystemService(NotificationManager.class);
|
||||||
if (manager != null) {
|
if (manager != null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user