diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-11-15 21:15:20 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-11-15 21:15:20 +0100 |
commit | 5cd09d7cc41ee46ab53dd2b46c7b2cbd47b78d6e (patch) | |
tree | 19cf3ce5fd40fb8aaa408b49377195aae2ca8993 /src/main/java/de/pixart/messenger/services | |
parent | e05df83a2a3260f1b04c36ff270ea2c3f2b5a64c (diff) |
do not show up navigation when opening edit account from notification
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java index 99ba3ddfe..053685fc6 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -107,7 +107,7 @@ public class NotificationService { } @RequiresApi(api = Build.VERSION_CODES.O) - public void initializeChannels() { + void initializeChannels() { final Context c = mXmppConnectionService; final NotificationManager notificationManager = c.getSystemService(NotificationManager.class); if (notificationManager == null) { @@ -969,6 +969,7 @@ public class NotificationService { } else { intent = new Intent(mXmppConnectionService, EditAccountActivity.class); intent.putExtra("jid", errors.get(0).getJid().asBareJid().toEscapedString()); + intent.putExtra(EditAccountActivity.EXTRA_OPENED_FROM_NOTIFICATION, true); } mBuilder.setContentIntent(PendingIntent.getActivity(mXmppConnectionService, 145, intent, PendingIntent.FLAG_UPDATE_CURRENT)); if (Compatibility.runsTwentySix()) { |