X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Ffragments%2FGuideWebViewFragment.kt;fp=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Ffragments%2FGuideWebViewFragment.kt;h=a8cc844880076ed1d93d450933f15afd25d53fb6;hp=5c8425cc328d34861515075e4246f8a77af83969;hb=a9cc33fde503c6c8b0a870e0a5d4287e38a4f696;hpb=74e8a8368db991ee511c216a298c4ff5201f41de diff --git a/app/src/main/java/com/stoutner/privacybrowser/fragments/GuideWebViewFragment.kt b/app/src/main/java/com/stoutner/privacybrowser/fragments/GuideWebViewFragment.kt index 5c8425cc..a8cc8448 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/fragments/GuideWebViewFragment.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/fragments/GuideWebViewFragment.kt @@ -1,7 +1,7 @@ /* - * Copyright 2016-2023 Soren Stoutner . + * Copyright 2016-2024 Soren Stoutner . * - * This file is part of Privacy Browser Android . + * This file is part of Privacy Browser Android . * * Privacy Browser Android is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -40,8 +40,8 @@ import androidx.webkit.WebViewFeature import com.stoutner.privacybrowser.R // Define the class constants. -private const val TAB_NUMBER = "tab_number" -private const val SCROLL_Y = "scroll_y" +private const val TAB_NUMBER = "A" +private const val SCROLL_Y = "B" class GuideWebViewFragment : Fragment() { // Define the class variables. @@ -135,7 +135,7 @@ class GuideWebViewFragment : Fragment() { 9 -> tabWebView.loadUrl("https://appassets.androidplatform.net/assets/" + getString(R.string.android_asset_path) + "/guide_interface.html") } - // Scroll the WebView if the saved instance state is not null. + // Restore the WebView scroll position if the activity has been restarted. if (savedInstanceState != null) { tabWebView.post { tabWebView.scrollY = savedInstanceState.getInt(SCROLL_Y)