File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/src/main/java/it/niedermann/owncloud/notes/main Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 6565
6666import it .niedermann .android .util .ColorUtil ;
6767import it .niedermann .owncloud .notes .LockedActivity ;
68+ import it .niedermann .owncloud .notes .NotesApplication ;
6869import it .niedermann .owncloud .notes .R ;
6970import it .niedermann .owncloud .notes .accountpicker .AccountPickerListener ;
7071import it .niedermann .owncloud .notes .accountswitcher .AccountSwitcherDialog ;
@@ -292,7 +293,9 @@ protected void onCreate(Bundle savedInstanceState) {
292293 });
293294 });
294295
295- getNotesListLiveData ();
296+ if (!NotesApplication .isLocked ()) {
297+ getNotesListLiveData ();
298+ }
296299 mainViewModel .getSearchTerm ().observe (this , adapter ::setHighlightSearchQuery );
297300 mainViewModel .getCategorySortingMethodOfSelectedCategory ().observe (this , methodOfCategory -> {
298301 updateSortMethodIcon (methodOfCategory .second );
You can’t perform that action at this time.
0 commit comments