mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Adding support for showing predicted apps as a floating row in all-apps
and overview Bug: 130053407 Change-Id: Idb93a0ba6cfea8406f75ab86d9e0acde2fc04b3a
This commit is contained in:
@@ -22,6 +22,8 @@ import com.android.launcher3.MainThreadExecutor;
|
||||
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
/**
|
||||
* Utility class for defining singletons which are initiated on main thread.
|
||||
*/
|
||||
@@ -53,6 +55,11 @@ public class MainThreadInitializedObject<T> {
|
||||
return mValue;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public void initializeForTesting(T value) {
|
||||
mValue = value;
|
||||
}
|
||||
|
||||
public interface ObjectProvider<T> {
|
||||
|
||||
T get(Context context);
|
||||
|
||||
Reference in New Issue
Block a user