Remove unnecessary lines

This commit is contained in:
Anthony Calosa
2020-04-05 01:15:09 +00:00
parent 52307c02d0
commit 96ce695aae

View File

@@ -148,8 +148,6 @@ public class Main extends AndroidApplication {
int uid = android.os.Process.myUid();
try {
int result = this.getBaseContext().checkPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE, pid, uid);
//we only need the result above atm, we can free the dependency from android-support-v4 :)
//int result = ContextCompat.checkSelfPermission(this, android.Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (result == PackageManager.PERMISSION_GRANTED) {
return true;
} else {