Commit 9cf18eae authored by AntonKV's avatar AntonKV

delete commented code and remove AuthPresenter fun onError()

parent 22b141dd
......@@ -48,10 +48,6 @@ class AuthPresenter @Inject constructor(
}
}
fun onError() {
viewState.showEmptyView(true)
}
fun refresh() {
startAuthorization()
}
......
......@@ -15,7 +15,4 @@ interface AuthView : MvpView {
@StateStrategyType(OneExecutionStateStrategy::class)
fun showMessage(message: String)
// fun clearWebView()
fun showEmptyView(show: Boolean)
}
\ No newline at end of file
......@@ -90,14 +90,14 @@ class AuthFragment : BaseFragment(), AuthView, CustomServerAuthFragment.OnClickL
override fun onReceivedError(view: WebView?, request: WebResourceRequest?, error: WebResourceError?) {
super.onReceivedError(view, request, error)
presenter.onError()
showEmptyView(true)
}
})
zeroViewHolder = ZeroViewHolder(zeroLayout, { presenter.refresh() })
}
override fun showEmptyView(show: Boolean) {
private fun showEmptyView(show: Boolean) {
zeroViewHolder?.apply { if (show) showEmptyError() else hide() }
webView.visible(!show)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment