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:
1 parent
c06e151e0f
commit
77b3419ad5
29 files changed
+2191
-21
No files matched your search
@@ -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