From eb7b000cc194f4e8ea66f061c779cdc8541b26fa Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Thu, 13 Dec 2018 22:29:12 +0100 Subject: [PATCH] fix crash when using quick compose tile --- .../com/keylesspalace/tusky/service/TuskyTileService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/service/TuskyTileService.java b/app/src/main/java/com/keylesspalace/tusky/service/TuskyTileService.java index 78413774..6aad5d22 100644 --- a/app/src/main/java/com/keylesspalace/tusky/service/TuskyTileService.java +++ b/app/src/main/java/com/keylesspalace/tusky/service/TuskyTileService.java @@ -34,6 +34,8 @@ public class TuskyTileService extends TileService { @Override public void onClick() { - startActivityAndCollapse(new Intent(this, ComposeActivity.class)); + Intent intent = new Intent(this, ComposeActivity.class); + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + startActivityAndCollapse(intent); } }