Create notification channel on import

This commit is contained in:
M66B 2019-01-10 07:41:29 +00:00
parent 3a25fed941
commit 9fde8fa0b5
1 changed files with 4 additions and 0 deletions

View File

@ -1164,6 +1164,10 @@ public class FragmentSetup extends FragmentEx {
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);
JSONArray jidentities = (JSONArray) jaccount.get("identities");
for (int i = 0; i < jidentities.length(); i++) {
JSONObject jidentity = (JSONObject) jidentities.get(i);