aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-01-25 23:33:36 +0100
committerChristian Schneppe <christian@pix-art.de>2019-01-25 23:33:36 +0100
commit1aa574b7db21a54c12dba981eb4fb98e84f31c72 (patch)
tree79ebf57396dd2f4155a0908b5c614693bb423669 /src
parent3a5e1fd0c3805c7acb6b869fc03e1b76b0bf494f (diff)
use clear top flag in shortcut intent
Diffstat (limited to '')
-rw-r--r--src/main/java/de/pixart/messenger/services/ShortcutService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/ShortcutService.java b/src/main/java/de/pixart/messenger/services/ShortcutService.java
index fa4853665..94bbc15cd 100644
--- a/src/main/java/de/pixart/messenger/services/ShortcutService.java
+++ b/src/main/java/de/pixart/messenger/services/ShortcutService.java
@@ -123,6 +123,7 @@ public class ShortcutService {
intent.setAction(Intent.ACTION_VIEW);
intent.setData(Uri.parse("xmpp:" + contact.getJid().asBareJid().toString()));
intent.putExtra("account", contact.getAccount().getJid().asBareJid().toString());
+ intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
return intent;
}