diff --git a/app/src/main/java/net/sourceforge/opencamera/MyTileService.java b/app/src/main/java/net/sourceforge/opencamera/MyTileService.java index e781b5c136750802f51ac3818ea4605734a52a09..5a01174b8dab7dfbe65bff723ebb95412b9083b2 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 101ae4f2ed6c40ff5d460fde4d31c1316d899964..010a7fd08bea9a8fca57c2a9724681ad6ef38a63 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 50c3f265cbf78bb964a22551ae484928d7b5182e..3db1694acf6ab1c642a8150c58be1aae65ac1b7e 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); } }