mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Prepare notification permissions
This commit is contained in:
@@ -622,7 +622,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
swCheckWeekly.setEnabled(checked);
|
||||
if (!checked) {
|
||||
NotificationManager nm =
|
||||
(NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
Helper.getSystemService(getContext(), NotificationManager.class);
|
||||
nm.cancel(NotificationHelper.NOTIFICATION_UPDATE);
|
||||
}
|
||||
}
|
||||
@@ -1550,7 +1550,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
|
||||
if (!Helper.isPlayStoreInstall() &&
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
NotificationManager nm = (NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
NotificationManager nm =
|
||||
Helper.getSystemService(getContext(), NotificationManager.class);
|
||||
|
||||
NotificationChannel notification = nm.getNotificationChannel("update");
|
||||
if (notification != null) {
|
||||
|
||||
Reference in New Issue
Block a user