|
|
@@ -51,8 +51,8 @@ import static android.app.PendingIntent.FLAG_CANCEL_CURRENT;
|
|
|
import static android.os.Build.VERSION.SDK_INT;
|
|
|
import static android.os.Build.VERSION_CODES.M;
|
|
|
import static android.support.v4.app.NotificationCompat.PRIORITY_HIGH;
|
|
|
-import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MAX;
|
|
|
-import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MIN;
|
|
|
+import static android.support.v4.app.NotificationCompat.PRIORITY_MAX;
|
|
|
+import static android.support.v4.app.NotificationCompat.PRIORITY_MIN;
|
|
|
|
|
|
/**
|
|
|
* Wrapper class around OS notification class. Handles basic operations
|
|
|
@@ -222,10 +222,10 @@ public final class Notification {
|
|
|
|
|
|
try {
|
|
|
switch (options.getPrio()) {
|
|
|
- case IMPORTANCE_MIN:
|
|
|
+ case PRIORITY_MIN:
|
|
|
mgr.setExact(RTC, time, pi);
|
|
|
break;
|
|
|
- case IMPORTANCE_MAX:
|
|
|
+ case PRIORITY_MAX:
|
|
|
if (SDK_INT >= M) {
|
|
|
mgr.setExactAndAllowWhileIdle(RTC_WAKEUP, time, pi);
|
|
|
} else {
|