修改首次进入书记界面默认按钮为5个
This commit is contained in:
@@ -133,7 +133,9 @@ class ToolButtonConfigDialog : BaseBottomSheetDialogFragment(R.layout.dialog_too
|
||||
val str = prefs.getString("tool_buttons", null)
|
||||
|
||||
return if (str.isNullOrBlank()) {
|
||||
getAllButtonIds().map { ConfigEntry(it, true) }
|
||||
getAllButtonIds().mapIndexed { index, id ->
|
||||
ConfigEntry(id, index < 5)
|
||||
}
|
||||
} else {
|
||||
val saved = str.split(";").mapNotNull {
|
||||
val parts = it.split(",")
|
||||
|
||||
Reference in New Issue
Block a user