Disable editing title for read only task

pull/2075/head
Alex Baker 2 years ago
parent 71f22dd05d
commit 2a825ce2c7

@ -180,6 +180,11 @@ class TaskEditFragment : Fragment(), Toolbar.OnMenuItemClickListener {
title.setText(model.title)
title.setHorizontallyScrolling(false)
title.maxLines = 5
if (editViewModel.isReadOnly) {
title.isFocusable = false
title.isFocusableInTouchMode = false
title.isCursorVisible = false
}
if (
model.isNew ||
preferences.getBoolean(R.string.p_hide_check_button, false) ||

Loading…
Cancel
Save