mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Possible fix for 2.3 crash
This commit is contained in:
parent
46727a98a5
commit
67c449c028
@ -97,7 +97,7 @@ public class ZimContentProvider extends ContentProvider {
|
||||
}
|
||||
|
||||
public synchronized static String setZimFile(String fileName) {
|
||||
if (!jniKiwix.loadZIM(fileName)) {
|
||||
if (!new File(fileName).exists() || !jniKiwix.loadZIM(fileName)) {
|
||||
Log.e(TAG_KIWIX, "Unable to open the ZIM file " + fileName);
|
||||
zimFileName = null;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user