Lawnchair: Fix icon size and label size reload, implement launcher restart

This commit is contained in:
Kshitij Gupta committed 2021-03-22 19:10:41 +05:30
1 parent 15c5ae0356
commit 480ac2c76b
17 files changed
+207 -46

No files matched your search

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