mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 07:16:04 -04:00
Remove redundant permission toast
This commit is contained in:
parent
2a39953fdb
commit
e6fcf73dbd
2
.idea/codeStyles/Project.xml
generated
2
.idea/codeStyles/Project.xml
generated
@ -331,4 +331,4 @@
|
|||||||
</indentOptions>
|
</indentOptions>
|
||||||
</codeStyleSettings>
|
</codeStyleSettings>
|
||||||
</code_scheme>
|
</code_scheme>
|
||||||
</component>
|
</component>
|
||||||
|
@ -1052,14 +1052,11 @@ public abstract class CoreMainActivity extends BaseActivity implements WebViewCa
|
|||||||
|
|
||||||
private void requestExternalStoragePermission() {
|
private void requestExternalStoragePermission() {
|
||||||
if (Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN) {
|
if (Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN) {
|
||||||
ActivityCompat.requestPermissions(this,
|
ActivityCompat.requestPermissions(
|
||||||
|
this,
|
||||||
new String[] { Manifest.permission.READ_EXTERNAL_STORAGE },
|
new String[] { Manifest.permission.READ_EXTERNAL_STORAGE },
|
||||||
REQUEST_STORAGE_PERMISSION
|
REQUEST_STORAGE_PERMISSION
|
||||||
);
|
);
|
||||||
ContextExtensionsKt.toast(this,
|
|
||||||
getResources().getString(R.string.request_storage),
|
|
||||||
Toast.LENGTH_LONG
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user