mirror of
https://github.com/beemdevelopment/Aegis
synced 2024-09-06 16:03:30 +00:00
Remove unused code for storage read permission request results
This commit is contained in:
parent
84e179f9d3
commit
8292173297
|
@ -72,9 +72,8 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
|
||||||
private static final int CODE_PREFERENCES = 5;
|
private static final int CODE_PREFERENCES = 5;
|
||||||
private static final int CODE_SCAN_IMAGE = 6;
|
private static final int CODE_SCAN_IMAGE = 6;
|
||||||
|
|
||||||
// permission request codes
|
// Permission request codes
|
||||||
private static final int CODE_PERM_CAMERA = 0;
|
private static final int CODE_PERM_CAMERA = 0;
|
||||||
private static final int CODE_PERM_READ_STORAGE = 1;
|
|
||||||
|
|
||||||
private boolean _loaded;
|
private boolean _loaded;
|
||||||
private boolean _isRecreated;
|
private boolean _isRecreated;
|
||||||
|
@ -239,13 +238,8 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (requestCode) {
|
if (requestCode == CODE_PERM_CAMERA) {
|
||||||
case CODE_PERM_CAMERA:
|
startScanActivity();
|
||||||
startScanActivity();
|
|
||||||
break;
|
|
||||||
case CODE_PERM_READ_STORAGE:
|
|
||||||
startScanImageActivity();
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||||
|
|
Loading…
Reference in a new issue