mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Remove unnecessary lines
This commit is contained in:
@@ -148,8 +148,6 @@ public class Main extends AndroidApplication {
|
|||||||
int uid = android.os.Process.myUid();
|
int uid = android.os.Process.myUid();
|
||||||
try {
|
try {
|
||||||
int result = this.getBaseContext().checkPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE, pid, uid);
|
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) {
|
if (result == PackageManager.PERMISSION_GRANTED) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user