mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-18 22:20:06 +08:00
fix
This commit is contained in:
parent
bbf59e3b46
commit
5b74ded6da
@ -75,13 +75,7 @@ class LogcatFragment : ToolbarFragment(R.layout.layout_logcat),
|
||||
offset += line.length + 1
|
||||
}
|
||||
binding.textview.text = span
|
||||
|
||||
// 阻止自动滚动/焦点干扰
|
||||
binding.scroolview.descendantFocusability = ViewGroup.FOCUS_BLOCK_DESCENDANTS
|
||||
binding.textview.isFocusable = false
|
||||
binding.textview.isFocusableInTouchMode = false
|
||||
binding.textview.clearFocus()
|
||||
|
||||
// 等 textview 完成最终 layout 再滚动到底部
|
||||
binding.textview.doOnLayout {
|
||||
binding.scroolview.scrollTo(0, binding.textview.height)
|
||||
|
||||
@ -86,7 +86,10 @@ class ConfigEditActivity : ThemedActivity() {
|
||||
}
|
||||
|
||||
binding.actionTab.setOnClickListener {
|
||||
binding.editor.insert(binding.editor.tab())
|
||||
try {
|
||||
binding.editor.insert(binding.editor.tab())
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
binding.actionUndo.setOnClickListener {
|
||||
try {
|
||||
@ -107,7 +110,12 @@ class ConfigEditActivity : ThemedActivity() {
|
||||
}
|
||||
|
||||
val extendedKeyboard = findViewById<ExtendedKeyboard>(R.id.extended_keyboard)
|
||||
extendedKeyboard.setKeyListener { char -> binding.editor.insert(char) }
|
||||
extendedKeyboard.setKeyListener { char ->
|
||||
try {
|
||||
binding.editor.insert(char)
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
extendedKeyboard.setHasFixedSize(true)
|
||||
extendedKeyboard.submitList("{},:_\"".map { it.toString() })
|
||||
extendedKeyboard.setBackgroundColor(getColorAttr(R.attr.primaryOrTextPrimary))
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
PACKAGE_NAME=moe.nb4a
|
||||
VERSION_NAME=1.3.9
|
||||
PRE_VERSION_NAME=pre-1.4.0-20250906-1
|
||||
PRE_VERSION_NAME=pre-1.4.0-20250906-2
|
||||
VERSION_CODE=43
|
||||
|
||||
Loading…
Reference in New Issue
Block a user