]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Change the default for scrolling the app bar to false. https://redmine.stoutner...
authorSoren Stoutner <soren@stoutner.com>
Sat, 30 Dec 2023 18:44:55 +0000 (11:44 -0700)
committerSoren Stoutner <soren@stoutner.com>
Sat, 30 Dec 2023 18:44:55 +0000 (11:44 -0700)
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.kt
app/src/main/java/com/stoutner/privacybrowser/fragments/SettingsFragment.kt
app/src/main/res/xml/preferences.xml

index f43e66d1fc74281202731d91dcc9b829a3d4a0f4..85b3ae76e0f60987e9f86304201d246ab40e597c 100644 (file)
@@ -3104,7 +3104,7 @@ class MainWebViewActivity : AppCompatActivity(), CreateBookmarkDialog.CreateBook
         fullScreenBrowsingModeEnabled = sharedPreferences.getBoolean(getString(R.string.full_screen_browsing_mode_key), false)
         hideAppBar = sharedPreferences.getBoolean(getString(R.string.hide_app_bar_key), true)
         downloadWithExternalApp = sharedPreferences.getBoolean(getString(R.string.download_with_external_app_key), false)
-        scrollAppBar = sharedPreferences.getBoolean(getString(R.string.scroll_app_bar_key), true)
+        scrollAppBar = sharedPreferences.getBoolean(getString(R.string.scroll_app_bar_key), false)
 
         // Apply the saved proxy mode if the app has been restarted.
         if (savedProxyMode != null) {
index eb74fce3f278686c96cf92e10b686d0f61aebe71..454962788dab53b8349f9aeee40c89be15ff5380 100644 (file)
@@ -522,7 +522,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
             downloadWithExternalAppPreference.setIcon(R.drawable.download_with_external_app_disabled)
 
         // Set the scroll app bar icon.
-        if (sharedPreferences.getBoolean(getString(R.string.scroll_app_bar_key), true))
+        if (sharedPreferences.getBoolean(getString(R.string.scroll_app_bar_key), false))
             scrollAppBarPreference.setIcon(R.drawable.app_bar_enabled)
         else
             scrollAppBarPreference.setIcon(R.drawable.app_bar_disabled)
@@ -1078,7 +1078,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
 
                 getString(R.string.scroll_app_bar_key) -> {
                     // Update the icon.
-                    if (sharedPreferences.getBoolean(getString(R.string.scroll_app_bar_key), true))
+                    if (sharedPreferences.getBoolean(getString(R.string.scroll_app_bar_key), false))
                         scrollAppBarPreference.setIcon(R.drawable.app_bar_enabled)
                     else
                         scrollAppBarPreference.setIcon(R.drawable.app_bar_disabled)
index ac2b6a4c70e9bde729093b5aa4a1790450056ced..345ad3073034a72020d8996ac9a9a1eaf39916be 100644 (file)
             app:key="@string/scroll_app_bar_key"
             app:title="@string/scroll_app_bar"
             app:summary="@string/scroll_app_bar_summary"
-            app:defaultValue="true" />
+            app:defaultValue="false" />
 
         <SwitchPreferenceCompat
             app:key="@string/bottom_app_bar_key"