mirror of https://github.com/M66B/FairEmail.git
Create notification channel on import
This commit is contained in:
parent
3a25fed941
commit
9fde8fa0b5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue