File tree 1 file changed +4
-1
lines changed
app/src/main/java/it/niedermann/owncloud/notes/main
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 65
65
66
66
import it .niedermann .android .util .ColorUtil ;
67
67
import it .niedermann .owncloud .notes .LockedActivity ;
68
+ import it .niedermann .owncloud .notes .NotesApplication ;
68
69
import it .niedermann .owncloud .notes .R ;
69
70
import it .niedermann .owncloud .notes .accountpicker .AccountPickerListener ;
70
71
import it .niedermann .owncloud .notes .accountswitcher .AccountSwitcherDialog ;
@@ -292,7 +293,9 @@ protected void onCreate(Bundle savedInstanceState) {
292
293
});
293
294
});
294
295
295
- getNotesListLiveData ();
296
+ if (!NotesApplication .isLocked ()) {
297
+ getNotesListLiveData ();
298
+ }
296
299
mainViewModel .getSearchTerm ().observe (this , adapter ::setHighlightSearchQuery );
297
300
mainViewModel .getCategorySortingMethodOfSelectedCategory ().observe (this , methodOfCategory -> {
298
301
updateSortMethodIcon (methodOfCategory .second );
You can’t perform that action at this time.
0 commit comments