close the app when no permission to storage is given

This commit is contained in:
tibbi
2016-06-13 17:32:38 +02:00
parent 11e692af35
commit 51981e4f06
2 changed files with 2 additions and 1 deletions

View File

@ -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();
}
}
}