diff --git a/AndroidManifest.xml b/AndroidManifest.xml index f5c8d170f..3ff2bb333 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,7 +1,7 @@
-

1. Download a Content

-

Kiwix is an Offline Content Reader, perfectly tailored for Wikipedia. Enjoying Kiwix is just 2 steps away.

-

Why don't you try our Wikipedia Demo file?

+

1. Download Offline Files

+

Kiwix allows to read websites like Wikipedia off-line. Try our 2.4MB Wikipedia demo file containing a few articles about singer Ray Charles from the English Wikipedia:

Ray-Charles-Demo.zim -

It's a 2.4MB ZIM containing a few articles about singer Ray Charles from the English Wikipedia.

-

It's just a sample! Browse kiwix.org and the Help to download other contents; like Wikipedia.

+

Offline content is available at kiwix.org or the Wikipedia bookshelf. You can create your own books in Wikipedia, refer to the help for further details.

Warning! This download will take place in your browser. Don't forget to come back to Kiwix once download is complete!
@@ -31,9 +29,9 @@
-

3. Open the file up-there!

-

Click the Open File button in the toolbar up there and select the ZIM file you downloaded. That's It!

-

Now, Enjoy your content, and take a look at the Help Page once bored.

+

3. Open the file in Kiwix!

+

Click the Open File button in the toolbar at the top and select the ZIM file you downloaded. That's It!

+

Now, enjoy your content, and take a look at the help page once bored.

diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 29387fa7c..09caa7650 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -24,7 +24,7 @@ android:key="pref_backtotop" android:title="@string/pref_backtotop" android:summary="@string/pref_backtotop_summary" - android:defaultValue="value"/> + android:defaultValue="false"/> diff --git a/src/org/kiwix/kiwixmobile/KiwixMobileFragment.java b/src/org/kiwix/kiwixmobile/KiwixMobileFragment.java index cc1082817..338f088ac 100644 --- a/src/org/kiwix/kiwixmobile/KiwixMobileFragment.java +++ b/src/org/kiwix/kiwixmobile/KiwixMobileFragment.java @@ -101,7 +101,7 @@ public class KiwixMobileFragment extends Fragment { private static final String PREF_KIWIX_MOBILE = "kiwix-mobile"; - private static final String PREF_BACK_TO_TOP = "pref_back_to_top"; + private static final String PREF_BACKTOTOP = "pref_backtotop"; private static final String AUTOMATIC = "automatic"; @@ -135,7 +135,7 @@ public class KiwixMobileFragment extends Fragment { protected int requestWebReloadOnFinished; - private boolean isButtonEnabled; + private boolean isBacktotopEnabled; private SharedPreferences mySharedPreferences; @@ -158,7 +158,7 @@ public class KiwixMobileFragment extends Fragment { requestWebReloadOnFinished = 0; requestInitAllMenuItems = false; nightMode = false; - isButtonEnabled = true; + isBacktotopEnabled = false; isFullscreenOpened = false; } @@ -385,7 +385,7 @@ public class KiwixMobileFragment extends Fragment { @Override public void onPageChanged(int page, int maxPages) { - if (isButtonEnabled) { + if (isBacktotopEnabled) { if (webView.getScrollY() > 200) { if (mBackToTopButton.getVisibility() == View.INVISIBLE) { mBackToTopButton.setText(R.string.button_backtotop); @@ -653,7 +653,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); - isButtonEnabled = mySharedPreferences.getBoolean(PREF_BACK_TO_TOP, isButtonEnabled); + isBacktotopEnabled = mySharedPreferences.getBoolean(PREF_BACKTOTOP, false); if (pref_zoom.equals(AUTOMATIC)) { setDefaultZoom(); @@ -674,7 +674,7 @@ public class KiwixMobileFragment extends Fragment { webView.getSettings().setBuiltInZoomControls(true); webView.getSettings().setDisplayZoomControls(pref_zoom_enabled); - if (!isButtonEnabled) { + if (!isBacktotopEnabled) { mBackToTopButton.setVisibility(View.INVISIBLE); }