mirror of
https://github.com/nextcloud/notes-android.git
synced 2025-07-23 05:20:09 +00:00
fix widget data npe
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
@ -64,6 +64,11 @@ public class NoteListWidgetFactory implements RemoteViewsService.RemoteViewsFact
|
||||
dbNotes.clear();
|
||||
try {
|
||||
data = repo.getNoteListWidgetData(appWidgetId);
|
||||
if (data == null) {
|
||||
Log.w(TAG, "Widget data is null");
|
||||
return;
|
||||
}
|
||||
|
||||
Log.v(TAG, "--- data - " + data);
|
||||
switch (data.getMode()) {
|
||||
case MODE_DISPLAY_ALL ->
|
||||
|
Reference in New Issue
Block a user