Target SDK 31

This commit is contained in:
M66B
2021-07-15 10:11:17 +02:00
parent 4580720856
commit 69fd709718
5 changed files with 10 additions and 9 deletions

View File

@@ -52,9 +52,8 @@ public class AlarmManagerCompatEx {
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R)
return true;
else {
//AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
//return am.canScheduleExactAlarms();
return true;
AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
return am.canScheduleExactAlarms();
}
}
}