Minor change but this code is not used any more.

TODO:remove it
This commit is contained in:
jacques 2021-05-07 22:12:55 +02:00
parent dd47fcb42a
commit 24bf0c7874

View file

@ -113,7 +113,10 @@ public class PillDroidJobService extends JobService {
String description = getString(R.string.channel_description);
int importance = NotificationManager.IMPORTANCE_DEFAULT;
String CHANNEL_ID = "PillDroid";
NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance);
NotificationChannel channel;
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
channel = new NotificationChannel(CHANNEL_ID, name, importance);
channel.setDescription(description);
// Register the channel with the system; you can't change the importance
// or other notification behaviors after this
@ -130,3 +133,4 @@ public class PillDroidJobService extends JobService {
}
}
}
}