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

This commit is contained in:
Kshitij Gupta
2021-03-17 21:31:27 +05:30
parent 15c5ae0356
commit 480ac2c76b
17 changed files with 207 additions and 46 deletions

View File

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