mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -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) {
|
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);
|
Log.e(TAG_KIWIX, "Unable to open the ZIM file " + fileName);
|
||||||
zimFileName = null;
|
zimFileName = null;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user