From 67b018f96ae76f2abdd370d1e182a969062fa5f1 Mon Sep 17 00:00:00 2001 From: althafvly Date: Thu, 8 Dec 2022 15:30:20 +0530 Subject: [PATCH] camera: Start an activity while collapsing the panel --- app/src/main/java/net/sourceforge/opencamera/MyTileService.java | 2 +- .../net/sourceforge/opencamera/MyTileServiceFrontCamera.java | 2 +- .../java/net/sourceforge/opencamera/MyTileServiceVideo.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/sourceforge/opencamera/MyTileService.java b/app/src/main/java/net/sourceforge/opencamera/MyTileService.java index e781b5c13..5a01174b8 100644 --- a/app/src/main/java/net/sourceforge/opencamera/MyTileService.java +++ b/app/src/main/java/net/sourceforge/opencamera/MyTileService.java @@ -46,6 +46,6 @@ public class MyTileService extends TileService { Intent intent = new Intent(this, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.setAction(TILE_ID); - startActivity(intent); + startActivityAndCollapse(intent); } } diff --git a/app/src/main/java/net/sourceforge/opencamera/MyTileServiceFrontCamera.java b/app/src/main/java/net/sourceforge/opencamera/MyTileServiceFrontCamera.java index 101ae4f2e..010a7fd08 100644 --- a/app/src/main/java/net/sourceforge/opencamera/MyTileServiceFrontCamera.java +++ b/app/src/main/java/net/sourceforge/opencamera/MyTileServiceFrontCamera.java @@ -46,6 +46,6 @@ public class MyTileServiceFrontCamera extends TileService { Intent intent = new Intent(this, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.setAction(TILE_ID); - startActivity(intent); + startActivityAndCollapse(intent); } } diff --git a/app/src/main/java/net/sourceforge/opencamera/MyTileServiceVideo.java b/app/src/main/java/net/sourceforge/opencamera/MyTileServiceVideo.java index 50c3f265c..3db1694ac 100644 --- a/app/src/main/java/net/sourceforge/opencamera/MyTileServiceVideo.java +++ b/app/src/main/java/net/sourceforge/opencamera/MyTileServiceVideo.java @@ -46,6 +46,6 @@ public class MyTileServiceVideo extends TileService { Intent intent = new Intent(this, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.setAction(TILE_ID); - startActivity(intent); + startActivityAndCollapse(intent); } } -- GitLab