use clear top flag in shortcut intent

This commit is contained in:
Daniel Gultsch 2019-01-18 12:28:35 +01:00
parent e1fe969bca
commit 477f2d34f3

View file

@ -124,6 +124,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;
}