Render widgets in a separate thread
This commit is contained in:
parent
1a8d9e72a1
commit
919504ccfb
@ -93,11 +93,11 @@ public abstract class BaseWidgetProvider extends AppWidgetProvider
|
|||||||
|
|
||||||
updateDependencies(context);
|
updateDependencies(context);
|
||||||
|
|
||||||
new Handler().postDelayed(() -> {
|
new Thread(() -> {
|
||||||
|
Looper.prepare();
|
||||||
for (int id : widgetIds)
|
for (int id : widgetIds)
|
||||||
update(context, manager, id);
|
update(context, manager, id);
|
||||||
}, 500);
|
}).start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user