mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 03:54:18 -04:00
Fix for customapp permission error in 6.0
This commit is contained in:
parent
0dc941a79c
commit
4794eedd69
@ -922,7 +922,7 @@ public class KiwixMobileActivity extends AppCompatActivity {
|
||||
public boolean openZimFile(File file, boolean clearHistory) {
|
||||
if (ContextCompat.checkSelfPermission(this,
|
||||
Manifest.permission.READ_EXTERNAL_STORAGE)
|
||||
== PackageManager.PERMISSION_GRANTED || Build.VERSION.SDK_INT < 19 || Constants.IS_CUSTOM_APP) {
|
||||
== PackageManager.PERMISSION_GRANTED || Build.VERSION.SDK_INT < 19 || (Constants.IS_CUSTOM_APP && Build.VERSION.SDK_INT != 23)) {
|
||||
if (file.exists()) {
|
||||
if (ZimContentProvider.setZimFile(file.getAbsolutePath()) != null) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user