diff --git a/Android.bp b/Android.bp index c8d9186010..d04dca0dfc 100644 --- a/Android.bp +++ b/Android.bp @@ -152,9 +152,13 @@ android_app { ], srcs: [ "src/**/*.java", + "src/**/*.kt", "src_shortcuts_overrides/**/*.java", + "src_shortcuts_overrides/**/*.kt", "src_ui_overrides/**/*.java", + "src_ui_overrides/**/*.kt", "ext_tests/src/**/*.java", + "ext_tests/src/**/*.kt", ], resource_dirs: [ "ext_tests/res", @@ -211,7 +215,10 @@ android_library { // Source code used for test helpers filegroup { name: "launcher-src-ext-tests", - srcs: ["ext_tests/src/**/*.java"], + srcs: [ + "ext_tests/src/**/*.java", + "ext_tests/src/**/*.kt", + ], } // Common source files used to build launcher @@ -219,8 +226,11 @@ filegroup { name: "launcher-src-no-build-config", srcs: [ "src/**/*.java", + "src/**/*.kt", "src_shortcuts_overrides/**/*.java", + "src_shortcuts_overrides/**/*.kt", "quickstep/src/**/*.java", + "quickstep/src/**/*.kt", ], } @@ -235,9 +245,13 @@ android_library { name: "LauncherGoResLib", srcs: [ "src/**/*.java", + "src/**/*.kt", "quickstep/src/**/*.java", + "quickstep/src/**/*.kt", "go/src/**/*.java", + "go/src/**/*.kt", "go/quickstep/src/**/*.java", + "go/quickstep/src/**/*.kt", ], resource_dirs: [ "go/res", diff --git a/Android.mk b/Android.mk index c1dbc5392d..ceaaf138f2 100644 --- a/Android.mk +++ b/Android.mk @@ -105,7 +105,7 @@ else LOCAL_SDK_VERSION := system_current LOCAL_MIN_SDK_VERSION := 26 endif -LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib +LOCAL_STATIC_ANDROID_LIBRARIES := LauncherGoResLib LOCAL_SRC_FILES := \ $(call all-java-files-under, src) \ diff --git a/quickstep/src/com/android/quickstep/util/TaskKeyLruCache.java b/quickstep/src/com/android/quickstep/util/TaskKeyLruCache.java index d87feec069..08a65fa9d5 100644 --- a/quickstep/src/com/android/quickstep/util/TaskKeyLruCache.java +++ b/quickstep/src/com/android/quickstep/util/TaskKeyLruCache.java @@ -20,6 +20,7 @@ import android.util.Log; import com.android.systemui.shared.recents.model.Task.TaskKey; import java.util.LinkedHashMap; +import java.util.Map; import java.util.function.Predicate; /** @@ -117,7 +118,7 @@ public class TaskKeyLruCache { } @Override - protected boolean removeEldestEntry(Entry> eldest) { + protected boolean removeEldestEntry(Map.Entry> eldest) { return size() > mMaxSize; } } diff --git a/quickstep/src/com/android/quickstep/views/TaskMenuViewWithArrow.kt b/quickstep/src/com/android/quickstep/views/TaskMenuViewWithArrow.kt new file mode 100644 index 0000000000..9b86c73170 --- /dev/null +++ b/quickstep/src/com/android/quickstep/views/TaskMenuViewWithArrow.kt @@ -0,0 +1,14 @@ +package com.android.quickstep.views + +import android.util.Log + +// TODO(http://b/193432925) +class TaskMenuViewWithArrow { + companion object { + const val TAG = "TaskMenuViewWithArrow" + + fun logSomething() { + Log.d(TAG, "It worked!") + } + } +} \ No newline at end of file diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java index 8d77e442e7..eef5fb3433 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/src/com/android/quickstep/views/TaskView.java @@ -115,6 +115,7 @@ import java.util.stream.Stream; public class TaskView extends FrameLayout implements Reusable { private static final String TAG = TaskView.class.getSimpleName(); + private static final boolean DEBUG = false; public static final int FLAG_UPDATE_ICON = 1; public static final int FLAG_UPDATE_THUMBNAIL = FLAG_UPDATE_ICON << 1; @@ -808,6 +809,8 @@ public class TaskView extends FrameLayout implements Reusable { } protected boolean showTaskMenuWithContainer(IconView iconView) { + // TODO(http://b/193432925) + if (DEBUG) TaskMenuViewWithArrow.Companion.logSomething(); return TaskMenuView.showForTask(mTaskIdAttributeContainer[0]); }