mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -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);
|
||||
Boolean pref_zoom_enabled = mySharedPreferences.getBoolean(PREF_ZOOM_ENABLED, 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)) {
|
||||
setDefaultZoom();
|
||||
@ -649,10 +649,8 @@ public class KiwixMobileFragment extends Fragment {
|
||||
webView.getSettings().setBuiltInZoomControls(pref_zoom_enabled);
|
||||
webView.getSettings().setDisplayZoomControls(pref_zoom_enabled);
|
||||
|
||||
if (pref_buttonEnabled) {
|
||||
mBackToTopButton.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
mBackToTopButton.setVisibility(View.VISIBLE);
|
||||
if (!isButtonEnabled) {
|
||||
mBackToTopButton.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
|
||||
// Night mode status
|
||||
|
Loading…
x
Reference in New Issue
Block a user