File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
app/src/main/kotlin/org/fossify/notes/activities Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -284,10 +284,8 @@ class MainActivity : SimpleActivity() {
284284 saveNoteButton!! .isVisible =
285285 ! config.autosaveNotes && showSaveButton && (::mCurrentNote.isInitialized && mCurrentNote.type == NoteType .TYPE_TEXT )
286286
287- findItem(R .id.preview_mode).isVisible =
288- (::mCurrentNote.isInitialized && ! mCurrentNote.isReadOnly && mCurrentNote.type != NoteType .TYPE_CHECKLIST )
289- findItem(R .id.edit_mode).isVisible =
290- (::mCurrentNote.isInitialized && mCurrentNote.isReadOnly && mCurrentNote.type != NoteType .TYPE_CHECKLIST )
287+ findItem(R .id.preview_mode).isVisible = (::mCurrentNote.isInitialized && ! mCurrentNote.isReadOnly && mCurrentNote.type != NoteType .TYPE_CHECKLIST )
288+ findItem(R .id.edit_mode).isVisible = (::mCurrentNote.isInitialized && mCurrentNote.isReadOnly && mCurrentNote.type != NoteType .TYPE_CHECKLIST )
291289 }
292290
293291 binding.pagerTabStrip.beVisibleIf(multipleNotesExist)
You can’t perform that action at this time.
0 commit comments