mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Render widgets in a separate thread
This commit is contained in:
@@ -93,11 +93,11 @@ public abstract class BaseWidgetProvider extends AppWidgetProvider
|
||||
|
||||
updateDependencies(context);
|
||||
|
||||
new Handler().postDelayed(() -> {
|
||||
new Thread(() -> {
|
||||
Looper.prepare();
|
||||
for (int id : widgetIds)
|
||||
update(context, manager, id);
|
||||
}, 500);
|
||||
|
||||
}).start();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
||||
Reference in New Issue
Block a user