Fixes #1938 Default value of zoom control

This commit is contained in:
Sonu Sourav 2020-04-04 22:22:34 +05:30
parent 4fb6aa6ab6
commit 1ec1f0edfa
3 changed files with 3 additions and 9 deletions

View File

@ -86,7 +86,6 @@ import java.util.Date;
import java.util.List;
import javax.inject.Inject;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import org.jetbrains.annotations.NotNull;
import org.json.JSONArray;
import org.kiwix.kiwixmobile.core.BuildConfig;
@ -1564,7 +1563,7 @@ public abstract class CoreMainActivity extends BaseActivity
int zoomScale = (int) sharedPreferenceUtil.getPrefZoom();
getCurrentWebView().setInitialScale(zoomScale);
} else {
getCurrentWebView().setInitialScale(0);
getCurrentWebView().setInitialScale(100);
}
if (!isBackToTopEnabled) {

View File

@ -21,8 +21,6 @@ package org.kiwix.kiwixmobile.core.main;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.graphics.ColorMatrixColorFilter;
import android.graphics.Paint;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
@ -42,7 +40,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.inject.Inject;
import org.jetbrains.annotations.NotNull;
import org.kiwix.kiwixmobile.core.BuildConfig;
import org.kiwix.kiwixmobile.core.CoreApp;
import org.kiwix.kiwixmobile.core.R;
@ -50,8 +47,6 @@ import org.kiwix.kiwixmobile.core.reader.ZimReaderContainer;
import org.kiwix.kiwixmobile.core.utils.LanguageUtils;
import org.kiwix.kiwixmobile.core.utils.SharedPreferenceUtil;
import static org.kiwix.kiwixmobile.core.main.CoreMainActivity.HOME_URL;
@SuppressLint("ViewConstructor")
public class KiwixWebView extends VideoEnabledWebView {
public static final float[] NIGHT_MODE_COLORS = {
@ -104,7 +99,7 @@ public class KiwixWebView extends VideoEnabledWebView {
int zoomScale = (int) sharedPreferenceUtil.getPrefZoom();
setInitialScale(zoomScale);
} else {
setInitialScale(0);
setInitialScale(100);
}
}

View File

@ -70,7 +70,7 @@
android:title="@string/pref_zoom_enable" />
<org.kiwix.kiwixmobile.core.settings.SliderPreference
android:defaultValue="250.0"
android:defaultValue="100.0"
android:dialogMessage="0"
android:enabled="false"
android:key="pref_zoom_slider"