summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-02-01 22:44:32 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-02-01 22:44:32 +0000
commit6a6f0ff9615353708aff8816999284200f4b6afd (patch)
tree084c679caf5451fa2d4c8aba05f385ec82f08412
parent2c9856febf134ad9a2a59702330e18675819c495 (diff)
parent4dcf354ea459605091b207b8804a2e1f943608d7 (diff)
downloadandroid_packages_apps_Trebuchet-6a6f0ff9615353708aff8816999284200f4b6afd.tar.gz
android_packages_apps_Trebuchet-6a6f0ff9615353708aff8816999284200f4b6afd.tar.bz2
android_packages_apps_Trebuchet-6a6f0ff9615353708aff8816999284200f4b6afd.zip
Merge "Stub out BackgroundApp/FastOverview states for Go." into ub-launcher3-master
-rw-r--r--go/quickstep/src/com/android/launcher3/uioverrides/BackgroundAppState.java26
-rw-r--r--go/quickstep/src/com/android/launcher3/uioverrides/FastOverviewState.java26
-rw-r--r--go/quickstep/src/com/android/launcher3/uioverrides/OverviewState.java3
-rw-r--r--quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/BackgroundAppState.java (renamed from quickstep/src/com/android/launcher3/uioverrides/BackgroundAppState.java)0
-rw-r--r--quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/FastOverviewState.java (renamed from quickstep/src/com/android/launcher3/uioverrides/FastOverviewState.java)0
5 files changed, 52 insertions, 3 deletions
diff --git a/go/quickstep/src/com/android/launcher3/uioverrides/BackgroundAppState.java b/go/quickstep/src/com/android/launcher3/uioverrides/BackgroundAppState.java
new file mode 100644
index 000000000..4038c9943
--- /dev/null
+++ b/go/quickstep/src/com/android/launcher3/uioverrides/BackgroundAppState.java
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2019 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.android.launcher3.uioverrides;
+
+/**
+ * State indicating that the Launcher is behind an app. Same as {@link OverviewState} for Go as we
+ * do not support swipe to overview or swipe to home.
+ */
+public final class BackgroundAppState extends OverviewState {
+ public BackgroundAppState(int id) {
+ super(id);
+ }
+}
diff --git a/go/quickstep/src/com/android/launcher3/uioverrides/FastOverviewState.java b/go/quickstep/src/com/android/launcher3/uioverrides/FastOverviewState.java
new file mode 100644
index 000000000..90360ce8a
--- /dev/null
+++ b/go/quickstep/src/com/android/launcher3/uioverrides/FastOverviewState.java
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2019 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.android.launcher3.uioverrides;
+
+/**
+ * Extension of overview state used for QuickScrub. Same as {@link OverviewState} for Go as we do
+ * not support quickscrub.
+ */
+public final class FastOverviewState extends OverviewState {
+ public FastOverviewState(int id) {
+ super(id);
+ }
+}
diff --git a/go/quickstep/src/com/android/launcher3/uioverrides/OverviewState.java b/go/quickstep/src/com/android/launcher3/uioverrides/OverviewState.java
index 283e34949..6144d691a 100644
--- a/go/quickstep/src/com/android/launcher3/uioverrides/OverviewState.java
+++ b/go/quickstep/src/com/android/launcher3/uioverrides/OverviewState.java
@@ -33,9 +33,6 @@ import com.android.quickstep.RecentsModel;
*/
public class OverviewState extends LauncherState {
- // TODO: Remove this when we refactor BackgroundAppState
- protected static final Rect sTempRect = new Rect();
-
private static final int STATE_FLAGS = FLAG_WORKSPACE_ICONS_CAN_BE_DRAGGED
| FLAG_DISABLE_RESTORE | FLAG_OVERVIEW_UI | FLAG_DISABLE_ACCESSIBILITY;
diff --git a/quickstep/src/com/android/launcher3/uioverrides/BackgroundAppState.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/BackgroundAppState.java
index 8d28f3333..8d28f3333 100644
--- a/quickstep/src/com/android/launcher3/uioverrides/BackgroundAppState.java
+++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/BackgroundAppState.java
diff --git a/quickstep/src/com/android/launcher3/uioverrides/FastOverviewState.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/FastOverviewState.java
index 1d65a54e7..1d65a54e7 100644
--- a/quickstep/src/com/android/launcher3/uioverrides/FastOverviewState.java
+++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/FastOverviewState.java