X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Ffragments%2FWebViewTabFragment.kt;h=154ea2dd20849b76d730407fad3ac5929ae8bc2f;hp=5d37613c3427040d48c4a9cf61347ef26a9756ff;hb=5186b668274b09e37b371c0a134e53255c98ad98;hpb=514e93baaa8389dc9c5abdb79e68c890c260b8d3 diff --git a/app/src/main/java/com/stoutner/privacybrowser/fragments/WebViewTabFragment.kt b/app/src/main/java/com/stoutner/privacybrowser/fragments/WebViewTabFragment.kt index 5d37613c..154ea2dd 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/fragments/WebViewTabFragment.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/fragments/WebViewTabFragment.kt @@ -1,5 +1,5 @@ /* - * Copyright © 2019-2020,2022 Soren Stoutner . + * Copyright © 2019-2020,2022-2023 Soren Stoutner . * * This file is part of Privacy Browser Android . * @@ -43,7 +43,6 @@ private const val SAVED_NESTED_SCROLL_WEBVIEW_STATE = "saved_nested_scroll_webvi class WebViewTabFragment : Fragment() { // Define the public variables. - @JvmField // TODO. `@JvmField` can be removed once the entire project has been converted to Kotlin. var fragmentId = Calendar.getInstance().timeInMillis // The public interface is used to send information back to the parent activity. @@ -59,7 +58,6 @@ class WebViewTabFragment : Fragment() { private lateinit var nestedScrollWebView: NestedScrollWebView companion object { - @JvmStatic // TODO. `@JvmStatic` can be removed once the entire project has been converted to Kotlin. fun createPage(pageNumber: Int, url: String?): WebViewTabFragment { // Create an arguments bundle. val argumentsBundle = Bundle() @@ -79,8 +77,7 @@ class WebViewTabFragment : Fragment() { return webViewTabFragment } - @JvmStatic // TODO. `@JvmStatic` can be removed once the entire project has been converted to Kotlin. - fun restorePage(savedState: Bundle?, savedNestedScrollWebViewState: Bundle?): WebViewTabFragment { + fun restorePage(savedState: Bundle, savedNestedScrollWebViewState: Bundle): WebViewTabFragment { // Create an arguments bundle val argumentsBundle = Bundle() @@ -165,4 +162,4 @@ class WebViewTabFragment : Fragment() { null } } -} \ No newline at end of file +}