Simplify account notification management

This commit is contained in:
M66B
2019-05-16 07:43:18 +02:00
parent b0655f0668
commit 42f9193179
4 changed files with 23 additions and 27 deletions

View File

@@ -770,9 +770,9 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
account.id = db.account().insertAccount(account);
Log.i("Imported account=" + account.name);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O)
if (account.notify)
account.createNotificationChannel(context);
account.deleteNotificationChannel(context);
if (account.notify)
account.createNotificationChannel(context);
JSONArray jidentities = (JSONArray) jaccount.get("identities");
for (int i = 0; i < jidentities.length(); i++) {