diff --git a/app/build.gradle b/app/build.gradle index 074d717a5c..893bba8933 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -188,7 +188,7 @@ def buildNumber = System.getenv('TRAVIS_BUILD_NUMBER') ?: "dev" ext { versionMajor = 2 versionMinor = 5 - versionPatch = 1 + versionPatch = 2 } private String generateVersionName() { diff --git a/app/src/main/java/org/kiwix/kiwixmobile/ZimContentProvider.java b/app/src/main/java/org/kiwix/kiwixmobile/ZimContentProvider.java index 255354f115..fc4b4c279e 100644 --- a/app/src/main/java/org/kiwix/kiwixmobile/ZimContentProvider.java +++ b/app/src/main/java/org/kiwix/kiwixmobile/ZimContentProvider.java @@ -28,16 +28,6 @@ import android.os.ParcelFileDescriptor.AutoCloseOutputStream; import android.util.Log; import android.webkit.MimeTypeMap; - -import org.kiwix.kiwixlib.JNIKiwix; -import org.kiwix.kiwixlib.JNIKiwixException; -import org.kiwix.kiwixlib.JNIKiwixInt; -import org.kiwix.kiwixlib.JNIKiwixReader; -import org.kiwix.kiwixlib.JNIKiwixSearcher; -import org.kiwix.kiwixlib.JNIKiwixString; -import org.kiwix.kiwixlib.Pair; -import org.kiwix.kiwixmobile.utils.files.FileUtils; - import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; @@ -49,8 +39,15 @@ import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; - import javax.inject.Inject; +import org.kiwix.kiwixlib.JNIKiwix; +import org.kiwix.kiwixlib.JNIKiwixException; +import org.kiwix.kiwixlib.JNIKiwixInt; +import org.kiwix.kiwixlib.JNIKiwixReader; +import org.kiwix.kiwixlib.JNIKiwixSearcher; +import org.kiwix.kiwixlib.JNIKiwixString; +import org.kiwix.kiwixlib.Pair; +import org.kiwix.kiwixmobile.utils.files.FileUtils; import static org.kiwix.kiwixmobile.utils.Constants.TAG_KIWIX; @@ -344,7 +341,7 @@ public String getType(Uri uri) { // This is the code which retrieve the mimeType from the libzim // "slow" and still bugyy - if (mimeType.isEmpty()) { + if (mimeType == null || mimeType.isEmpty()) { String t = uri.toString(); int pos = uri.toString().indexOf(CONTENT_URI.toString()); if (pos != -1) { diff --git a/secrets.tar.enc b/secrets.tar.enc index 05e3c25c98..84725abc8a 100644 Binary files a/secrets.tar.enc and b/secrets.tar.enc differ