Android 5 Lollipop compatibility

This commit is contained in:
M66B
2018-12-09 18:49:52 +01:00
parent be415c6a5f
commit ea895040f5
16 changed files with 85 additions and 48 deletions

View File

@@ -808,7 +808,7 @@ public class FragmentAccount extends FragmentEx {
ServiceSynchronize.reload(getContext(), "save account");
if (!synchronize) {
NotificationManager nm = getContext().getSystemService(NotificationManager.class);
NotificationManager nm = (NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancel("receive", account.id.intValue());
}
@@ -1138,6 +1138,7 @@ public class FragmentAccount extends FragmentEx {
null,
null,
new String[]{provider.type},
false,
null,
null,
null,