Update MainActivity.kt

This commit is contained in:
Tibor Kaputa 2021-09-28 23:32:16 +02:00 committed by GitHub
parent ed1603afad
commit e1ac84533d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ class MainActivity : SimpleActivity() {
isEnabled = showUndoButton && mCurrentNote.type == NoteType.TYPE_TEXT.value
icon.alpha = if (isEnabled) 255 else 127
}
findItem(R.id.redo).apply {
isVisible = areButtonsVisible
isEnabled = showRedoButton && mCurrentNote.type == NoteType.TYPE_TEXT.value