This commit is contained in:
gedoor
2022-01-11 10:17:18 +08:00
parent 267d5b8d75
commit 4aedb8b777
2 changed files with 2 additions and 1 deletions
@@ -24,7 +24,7 @@ class SourceLoginActivity : VMBaseActivity<ActivitySourceLoginBinding, SourceLog
private fun initView(source: BaseSource) { private fun initView(source: BaseSource) {
if (source.loginUi.isNullOrEmpty()) { if (source.loginUi.isNullOrEmpty()) {
supportFragmentManager.beginTransaction() supportFragmentManager.beginTransaction()
.replace(R.id.fl_fragment, WebViewLoginFragment()) .replace(R.id.fl_fragment, WebViewLoginFragment(), "webViewLogin")
.commit() .commit()
} else { } else {
showDialogFragment<SourceLoginDialog>() showDialogFragment<SourceLoginDialog>()
@@ -9,6 +9,7 @@
android:id="@+id/title_bar" android:id="@+id/title_bar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:attachToActivity="false"
app:title="@string/login" /> app:title="@string/login" />
<WebView <WebView