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:
Sunny Goyal
2019-04-19 01:46:51 -07:00
parent c06e151e0f
commit 77b3419ad5
29 changed files with 2191 additions and 21 deletions

View File

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