fix widget data npe

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk
2025-07-07 14:07:29 +02:00
parent a5ef21a611
commit 183b85af03

View File

@ -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 ->