pull/1395/head
gedoor 3 years ago
parent b30ae2ef9e
commit 0b39bbf6e6
  1. 2
      app/src/main/java/io/legado/app/ui/login/RuleUiLoginDialog.kt
  2. 11
      app/src/main/res/menu/source_login.xml

@ -15,6 +15,7 @@ import io.legado.app.databinding.DialogLoginBinding
import io.legado.app.databinding.ItemFilletTextBinding
import io.legado.app.databinding.ItemSourceEditBinding
import io.legado.app.lib.theme.primaryColor
import io.legado.app.ui.about.AppLogDialog
import io.legado.app.utils.*
import io.legado.app.utils.viewbindingdelegate.viewBinding
import kotlinx.coroutines.Dispatchers.IO
@ -91,6 +92,7 @@ class RuleUiLoginDialog : BaseDialogFragment(R.layout.dialog_login) {
}
login(source, loginData)
}
R.id.menu_log -> showDialogFragment<AppLogDialog>()
}
return@setOnMenuItemClickListener true
}

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<menu xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:ignore="AlwaysShowAction">
<item
android:id="@+id/menu_ok"
@ -8,4 +10,9 @@
android:title="@string/ok"
app:showAsAction="always" />
<item
android:id="@+id/menu_log"
android:title="@string/log"
app:showAsAction="never" />
</menu>
Loading…
Cancel
Save