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