File tree Expand file tree Collapse file tree 4 files changed +26
-0
lines changed
kotlin/com/simplemobiletools/keyboard Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class SettingsActivity : SimpleActivity() {
4444 setupKeyboardLanguage()
4545 setupKeyboardHeightMultiplier()
4646 setupShowClipboardContent()
47+ setupShowNumbersRow()
4748
4849 updateTextColors(settings_nested_scrollview)
4950
@@ -159,4 +160,11 @@ class SettingsActivity : SimpleActivity() {
159160 config.showClipboardContent = settings_show_clipboard_content.isChecked
160161 }
161162 }
163+ private fun setupShowNumbersRow () {
164+ settings_show_numbers_row.isChecked = config.showNumbersRow
165+ settings_show_numbers_row_holder.setOnClickListener {
166+ settings_show_numbers_row.toggle()
167+ config.showNumbersRow = settings_show_numbers_row.isChecked
168+ }
169+ }
162170}
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ class Config(context: Context) : BaseConfig(context) {
3737 get() = prefs.getBoolean(SHOW_CLIPBOARD_CONTENT , true )
3838 set(showClipboardContent) = prefs.edit().putBoolean(SHOW_CLIPBOARD_CONTENT , showClipboardContent).apply ()
3939
40+ var showNumbersRow: Boolean
41+ get() = prefs.getBoolean(SHOW_NUMBERS_ROW , false )
42+ set(showNumbersRow) = prefs.edit().putBoolean(SHOW_NUMBERS_ROW , showNumbersRow).apply ()
4043
4144 private fun getDefaultLanguage (): Int {
4245 val conf = context.resources.configuration
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const val LAST_EXPORTED_CLIPS_FOLDER = "last_exported_clips_folder"
1515const val KEYBOARD_LANGUAGE = " keyboard_language"
1616const val HEIGHT_MULTIPLIER = " height_multiplier"
1717const val SHOW_CLIPBOARD_CONTENT = " show_clipboard_content"
18+ const val SHOW_NUMBERS_ROW = " show_numbers_row"
1819
1920// differentiate current and pinned clips at the keyboards' Clipboard section
2021const val ITEM_SECTION_LABEL = 0
Original file line number Diff line number Diff line change 189189 android : layout_height =" wrap_content"
190190 android : text =" @string/show_clipboard_content" />
191191
192+ </RelativeLayout >
193+ <RelativeLayout
194+ android : id =" @+id/settings_show_numbers_row_holder"
195+ style =" @style/SettingsHolderCheckboxStyle"
196+ android : layout_width =" match_parent"
197+ android : layout_height =" wrap_content" >
198+
199+ <com .simplemobiletools.commons.views.MyAppCompatCheckbox
200+ android : id =" @+id/settings_show_numbers_row"
201+ style =" @style/SettingsCheckboxStyle"
202+ android : layout_width =" match_parent"
203+ android : layout_height =" wrap_content"
204+ android : text =" @string/show_numbers_row" />
205+
192206 </RelativeLayout >
193207
194208 <RelativeLayout
You can’t perform that action at this time.
0 commit comments