diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-04 10:49:22 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-04 10:49:22 -0700 |
commit | 5aac1cda7b1ad561131de109d1f29e8e7b730e82 (patch) | |
tree | cb0e0387782c24a667a51bb3583af704c9266f4c /app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt | |
parent | 4b78e433e1f55b278623c84d1223e42cab875be6 (diff) | |
download | frost-5aac1cda7b1ad561131de109d1f29e8e7b730e82.tar.gz frost-5aac1cda7b1ad561131de109d1f29e8e7b730e82.tar.bz2 frost-5aac1cda7b1ad561131de109d1f29e8e7b730e82.zip |
Remove positions in WebFragment
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt b/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt index 3c8094aa..3882260e 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt @@ -2,6 +2,7 @@ package com.pitchedapps.frost.fragments import android.content.Context import android.os.Bundle +import android.support.v4.app.Fragment import android.support.v4.widget.SwipeRefreshLayout import android.view.LayoutInflater import android.view.View @@ -18,11 +19,11 @@ import io.reactivex.disposables.Disposable */ -class WebFragment : BaseFragment() { +class WebFragment:Fragment() { companion object { private const val ARG_URL = "arg_url" - fun newInstance(position: Int, url: String) = BaseFragment.newInstance(WebFragment(), position).putString(ARG_URL, url) + fun newInstance(url: String) = WebFragment().putString(ARG_URL, url) } // val refresh: SwipeRefreshLayout by lazy { frostWebView.refresh } @@ -40,7 +41,6 @@ class WebFragment : BaseFragment() { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { super.onCreateView(inflater, container, savedInstanceState) frostWebView = FrostWebView(context) - frostWebView.position = position frostWebView.baseUrl = url return frostWebView } @@ -78,5 +78,5 @@ class WebFragment : BaseFragment() { super.onDetach() } - override fun onBackPressed() = frostWebView.onBackPressed() + fun onBackPressed() = frostWebView.onBackPressed() }
\ No newline at end of file |