File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
app/src/main/kotlin/com/simplemobiletools/notes/pro/activities Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -167,16 +167,13 @@ class MainActivity : SimpleActivity() {
167167 val isCurrentItemChecklist = isCurrentItemChecklist()
168168
169169 main_toolbar.menu.apply {
170- val areButtonsVisible = (showRedoButton || showUndoButton) && mCurrentNote.type == NoteType .TYPE_TEXT .value
171170 findItem(R .id.undo).apply {
172- isVisible = areButtonsVisible
173- isEnabled = showUndoButton && mCurrentNote.type == NoteType .TYPE_TEXT .value
171+ isVisible = showUndoButton && mCurrentNote.type == NoteType .TYPE_TEXT .value
174172 icon?.alpha = if (isEnabled) 255 else 127
175173 }
176174
177175 findItem(R .id.redo).apply {
178- isVisible = areButtonsVisible
179- isEnabled = showRedoButton && mCurrentNote.type == NoteType .TYPE_TEXT .value
176+ isVisible = showRedoButton && mCurrentNote.type == NoteType .TYPE_TEXT .value
180177 icon?.alpha = if (isEnabled) 255 else 127
181178 }
182179
You can’t perform that action at this time.
0 commit comments