mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-24 12:30:07 +01:00
removing the setting related to creating new checklist items at the top
This commit is contained in:
parent
4a5b8cd2dd
commit
fa938fe792
app/src/main
kotlin/com/simplemobiletools/notes/pro
res/layout
@ -21,11 +21,14 @@ class NewChecklistItemDialog(val activity: Activity, callback: (titles: ArrayLis
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
addNewEditText()
|
addNewEditText()
|
||||||
view.add_item.applyColorFilter(activity.getAdjustedPrimaryColor())
|
view.apply {
|
||||||
view.add_item.background.applyColorFilter(textColor)
|
add_item.applyColorFilter(activity.getAdjustedPrimaryColor())
|
||||||
view.add_item.setOnClickListener {
|
add_item.background.applyColorFilter(textColor)
|
||||||
addNewEditText()
|
add_item.setOnClickListener {
|
||||||
|
addNewEditText()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AlertDialog.Builder(activity)
|
AlertDialog.Builder(activity)
|
||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
|
@ -147,12 +147,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config?.addNewChecklistItemsTop == true) {
|
items.addAll(newItems)
|
||||||
items.addAll(0, newItems)
|
|
||||||
} else {
|
|
||||||
items.addAll(newItems)
|
|
||||||
}
|
|
||||||
|
|
||||||
saveNote()
|
saveNote()
|
||||||
setupAdapter()
|
setupAdapter()
|
||||||
}
|
}
|
||||||
|
@ -89,8 +89,4 @@ class Config(context: Context) : BaseConfig(context) {
|
|||||||
var fontSizePercentage: Int
|
var fontSizePercentage: Int
|
||||||
get() = prefs.getInt(FONT_SIZE_PERCENTAGE, 100)
|
get() = prefs.getInt(FONT_SIZE_PERCENTAGE, 100)
|
||||||
set(fontSizePercentage) = prefs.edit().putInt(FONT_SIZE_PERCENTAGE, fontSizePercentage).apply()
|
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 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 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 FONT_SIZE_PERCENTAGE = "font_size_percentage"
|
||||||
const val ADD_NEW_CHECKLIST_ITEMS_TOP = "add_new_checklist_items_top"
|
|
||||||
|
|
||||||
// gravity
|
// gravity
|
||||||
const val GRAVITY_LEFT = 0
|
const val GRAVITY_LEFT = 0
|
||||||
|
@ -33,5 +33,4 @@
|
|||||||
android:src="@drawable/ic_plus_vector" />
|
android:src="@drawable/ic_plus_vector" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user