mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
Update MainActivity.kt
This commit is contained in:
@ -142,6 +142,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
isEnabled = showUndoButton && mCurrentNote.type == NoteType.TYPE_TEXT.value
|
isEnabled = showUndoButton && mCurrentNote.type == NoteType.TYPE_TEXT.value
|
||||||
icon.alpha = if (isEnabled) 255 else 127
|
icon.alpha = if (isEnabled) 255 else 127
|
||||||
}
|
}
|
||||||
|
|
||||||
findItem(R.id.redo).apply {
|
findItem(R.id.redo).apply {
|
||||||
isVisible = areButtonsVisible
|
isVisible = areButtonsVisible
|
||||||
isEnabled = showRedoButton && mCurrentNote.type == NoteType.TYPE_TEXT.value
|
isEnabled = showRedoButton && mCurrentNote.type == NoteType.TYPE_TEXT.value
|
||||||
|
Reference in New Issue
Block a user