mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 06:42:21 -04:00
Revert a small change
This commit is contained in:
parent
fea4a6a9ad
commit
1b84f3c5c5
@ -628,7 +628,7 @@ public class KiwixMobileFragment extends Fragment {
|
|||||||
String pref_zoom = mySharedPreferences.getString(PREF_ZOOM, AUTOMATIC);
|
String pref_zoom = mySharedPreferences.getString(PREF_ZOOM, AUTOMATIC);
|
||||||
Boolean pref_zoom_enabled = mySharedPreferences.getBoolean(PREF_ZOOM_ENABLED, false);
|
Boolean pref_zoom_enabled = mySharedPreferences.getBoolean(PREF_ZOOM_ENABLED, false);
|
||||||
Boolean pref_nightmode = mySharedPreferences.getBoolean(PREF_NIGHTMODE, false);
|
Boolean pref_nightmode = mySharedPreferences.getBoolean(PREF_NIGHTMODE, false);
|
||||||
Boolean pref_buttonEnabled = mySharedPreferences.getBoolean(PREF_BACK_TO_TOP, false);
|
isButtonEnabled = mySharedPreferences.getBoolean(PREF_BACK_TO_TOP, isButtonEnabled);
|
||||||
|
|
||||||
if (pref_zoom.equals(AUTOMATIC)) {
|
if (pref_zoom.equals(AUTOMATIC)) {
|
||||||
setDefaultZoom();
|
setDefaultZoom();
|
||||||
@ -649,10 +649,8 @@ public class KiwixMobileFragment extends Fragment {
|
|||||||
webView.getSettings().setBuiltInZoomControls(pref_zoom_enabled);
|
webView.getSettings().setBuiltInZoomControls(pref_zoom_enabled);
|
||||||
webView.getSettings().setDisplayZoomControls(pref_zoom_enabled);
|
webView.getSettings().setDisplayZoomControls(pref_zoom_enabled);
|
||||||
|
|
||||||
if (pref_buttonEnabled) {
|
if (!isButtonEnabled) {
|
||||||
mBackToTopButton.setVisibility(View.VISIBLE);
|
mBackToTopButton.setVisibility(View.INVISIBLE);
|
||||||
} else {
|
|
||||||
mBackToTopButton.setVisibility(View.VISIBLE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Night mode status
|
// Night mode status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user