diff options
author | Allan Wang <me@allanwang.ca> | 2017-11-09 01:54:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 01:54:12 -0500 |
commit | e1c12f7716511d15e7534b959370619ebf04af81 (patch) | |
tree | fe8af0e01c6dc44f869b165b15b991ac9caee22a /app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt | |
parent | fc4a018d4862f6d64b6a4c737d90c46574bbf92b (diff) | |
download | frost-e1c12f7716511d15e7534b959370619ebf04af81.tar.gz frost-e1c12f7716511d15e7534b959370619ebf04af81.tar.bz2 frost-e1c12f7716511d15e7534b959370619ebf04af81.zip |
Update/kau (#476)
* Update all dependencies
* Revert to working build
* Update kau again
* Update nullables
* Update more nullables
* Inline some things
* Add images to readme
* Update readme translators
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 | 10 |
1 files changed, 5 insertions, 5 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 4286be86..f1b76e57 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragment.kt @@ -42,9 +42,9 @@ class WebFragment : Fragment() { // val refresh: SwipeRefreshLayout by lazy { frostWebView.refresh } val web: FrostWebViewCore by lazy { frostWebView.web } - val url: String by lazy { arguments.getString(ARG_URL) } - val urlEnum: FbItem by lazy { arguments.getSerializable(ARG_URL_ENUM) as FbItem } - val position: Int by lazy { arguments.getInt(ARG_POSITION) } + val url: String by lazy { arguments!!.getString(ARG_URL) } + val urlEnum: FbItem by lazy { arguments!!.getSerializable(ARG_URL_ENUM) as FbItem } + val position: Int by lazy { arguments!!.getInt(ARG_POSITION) } lateinit var frostWebView: FrostWebView private var firstLoad = true private var activityDisposable: Disposable? = null @@ -60,12 +60,12 @@ class WebFragment : Fragment() { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { super.onCreateView(inflater, container, savedInstanceState) - frostWebView = FrostWebView(context) + frostWebView = FrostWebView(context!!) frostWebView.setupWebview(url, urlEnum) return frostWebView } - override fun onViewCreated(view: View?, savedInstanceState: Bundle?) { + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) onCreateRunnable?.invoke(this) onCreateRunnable = null |