mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
d9efe8b8ee
commit
5e7360c8bf
@ -5,9 +5,8 @@ import android.os.Bundle
|
||||
import android.view.Menu
|
||||
import android.view.MenuItem
|
||||
import android.view.SubMenu
|
||||
import android.view.View
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.activity.viewModels
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.appcompat.widget.PopupMenu
|
||||
import androidx.appcompat.widget.SearchView
|
||||
import androidx.core.os.bundleOf
|
||||
@ -377,16 +376,12 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV
|
||||
Debug.isChecking = firstItem >= 0 && lastItem >= 0
|
||||
checkMessageRefreshJob(firstItem, lastItem).start()
|
||||
}
|
||||
neutralButton(R.string.check_source_config, null)
|
||||
neutralButton(R.string.check_source_config)
|
||||
cancelButton()
|
||||
}
|
||||
//手动设置监听 避免点击打开校验设置后对话框关闭
|
||||
dialog.getButton(AlertDialog.BUTTON_NEUTRAL)?.let {
|
||||
it.setOnClickListener(object: View.OnClickListener {
|
||||
override fun onClick(view: View) {
|
||||
showDialogFragment<CheckSourceConfig>()
|
||||
}
|
||||
})
|
||||
dialog.getButton(AlertDialog.BUTTON_NEUTRAL)?.setOnClickListener {
|
||||
showDialogFragment<CheckSourceConfig>()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user