We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f23f21 commit e428743Copy full SHA for e428743
1 file changed
app/src/main/java/com/example/rootfilepicker/MainActivity.java
@@ -138,19 +138,12 @@ private void saveSelectedPaths() {
138
writer.write(item.getFile().getAbsolutePath() + "\n");
139
}
140
141
-
142
super.onBackPressed();
143
144
145
146
- @Override
147
- public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
148
- if (requestCode == PERMISSION_REQUEST_CODE) {
149
- if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
150
- initFilePicker();
151
- } else {
152
- Toast.makeText(this, "Permission denied", Toast.LENGTH_SHORT).show();
153
- }
154
155
156
+
0 commit comments