Workaround Android bug

This commit is contained in:
M66B
2020-02-22 22:09:46 +01:00
parent cba5b297df
commit 58b8a9e8e3
4 changed files with 86 additions and 31 deletions

View File

@@ -826,8 +826,12 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
builder.setContentIntent(piUpdate);
}
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify(Helper.NOTIFICATION_UPDATE, builder.build());
try {
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify(Helper.NOTIFICATION_UPDATE, builder.build());
} catch (Throwable ex) {
Log.w(ex);
}
}
@Override