From 51981e4f068414ad572d2a1bee3c27f9b86021f3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 Jun 2016 17:32:38 +0200 Subject: [PATCH] close the app when no permission to storage is given --- .../com/simplemobiletools/gallery/activities/MainActivity.java | 1 + app/src/main/res/values/strings.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java index 6159f5b44..b03c392ab 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java @@ -117,6 +117,7 @@ public class MainActivity extends AppCompatActivity initializeGallery(); } else { Toast.makeText(this, getResources().getString(R.string.no_permissions), Toast.LENGTH_SHORT).show(); + finish(); } } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8238c491b..04ec53990 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,7 +1,7 @@ Simple Gallery Share via - Not much to do in a gallery without accessing your photos and videos + Not much to do in a gallery without accessing your storage Delete Deleting Edit