Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 183b85af authored by alperozturk's avatar alperozturk
Browse files

fix widget data npe

parent a5ef21a6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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 ->