mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-22 03:20:16 +01:00
removing the setting related to creating new checklist items at the top
This commit is contained in:
parent
4a5b8cd2dd
commit
fa938fe792
@ -21,11 +21,14 @@ class NewChecklistItemDialog(val activity: Activity, callback: (titles: ArrayLis
|
||||
|
||||
init {
|
||||
addNewEditText()
|
||||
view.add_item.applyColorFilter(activity.getAdjustedPrimaryColor())
|
||||
view.add_item.background.applyColorFilter(textColor)
|
||||
view.add_item.setOnClickListener {
|
||||
addNewEditText()
|
||||
view.apply {
|
||||
add_item.applyColorFilter(activity.getAdjustedPrimaryColor())
|
||||
add_item.background.applyColorFilter(textColor)
|
||||
add_item.setOnClickListener {
|
||||
addNewEditText()
|
||||
}
|
||||
}
|
||||
|
||||
AlertDialog.Builder(activity)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
|
@ -147,12 +147,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
||||
}
|
||||
}
|
||||
|
||||
if (config?.addNewChecklistItemsTop == true) {
|
||||
items.addAll(0, newItems)
|
||||
} else {
|
||||
items.addAll(newItems)
|
||||
}
|
||||
|
||||
items.addAll(newItems)
|
||||
saveNote()
|
||||
setupAdapter()
|
||||
}
|
||||
|
@ -89,8 +89,4 @@ class Config(context: Context) : BaseConfig(context) {
|
||||
var fontSizePercentage: Int
|
||||
get() = prefs.getInt(FONT_SIZE_PERCENTAGE, 100)
|
||||
set(fontSizePercentage) = prefs.edit().putInt(FONT_SIZE_PERCENTAGE, fontSizePercentage).apply()
|
||||
|
||||
var addNewChecklistItemsTop: Boolean
|
||||
get() = prefs.getBoolean(ADD_NEW_CHECKLIST_ITEMS_TOP, false)
|
||||
set(addNewCheckListItemsTop) = prefs.edit().putBoolean(ADD_NEW_CHECKLIST_ITEMS_TOP, addNewCheckListItemsTop).apply()
|
||||
}
|
||||
|
@ -32,7 +32,6 @@ const val USE_INCOGNITO_MODE = "use_incognito_mode"
|
||||
const val LAST_CREATED_NOTE_TYPE = "last_created_note_type"
|
||||
const val MOVE_DONE_CHECKLIST_ITEMS = "move_undone_checklist_items" // it has been replaced from moving undone items at the top to moving done to bottom
|
||||
const val FONT_SIZE_PERCENTAGE = "font_size_percentage"
|
||||
const val ADD_NEW_CHECKLIST_ITEMS_TOP = "add_new_checklist_items_top"
|
||||
|
||||
// gravity
|
||||
const val GRAVITY_LEFT = 0
|
||||
|
@ -33,5 +33,4 @@
|
||||
android:src="@drawable/ic_plus_vector" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
Loading…
x
Reference in New Issue
Block a user