mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-16 20:10:37 +01:00
close the app when no permission to storage is given
This commit is contained in:
parent
11e692af35
commit
51981e4f06
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<resources>
|
||||
<string name="app_name">Simple Gallery</string>
|
||||
<string name="share_via">Share via</string>
|
||||
<string name="no_permissions">Not much to do in a gallery without accessing your photos and videos</string>
|
||||
<string name="no_permissions">Not much to do in a gallery without accessing your storage</string>
|
||||
<string name="delete">Delete</string>
|
||||
<string name="deleting">Deleting</string>
|
||||
<string name="edit">Edit</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user