mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Lawnchair: Fix icon size and label size reload, implement launcher restart
This commit is contained in:
@@ -48,6 +48,7 @@ public class MainThreadInitializedObject<T> {
|
||||
if (Looper.myLooper() == Looper.getMainLooper()) {
|
||||
mValue = TraceHelper.allowIpcs("main.thread.object",
|
||||
() -> mProvider.get(context.getApplicationContext()));
|
||||
onPostInit(context);
|
||||
} else {
|
||||
try {
|
||||
return MAIN_EXECUTOR.submit(() -> get(context)).get();
|
||||
@@ -59,6 +60,8 @@ public class MainThreadInitializedObject<T> {
|
||||
return mValue;
|
||||
}
|
||||
|
||||
protected void onPostInit(Context context) { }
|
||||
|
||||
public T getNoCreate() {
|
||||
return mValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user