summaryrefslogtreecommitdiff
path: root/src_ui_overrides
diff options
context:
space:
mode:
authorSihua Ma <sihua@google.com>2022-11-08 17:13:13 -0800
committerSihua Ma <sihua@google.com>2022-12-16 11:56:36 -0800
commit1db8bc24679354670f3d89a84b11d31e076fedc6 (patch)
tree6bb73a15f2697439ae2db6d69865fa4bba1775a8 /src_ui_overrides
parent39768edb6781851c24f3fe0256114d060f60efda (diff)
downloadLauncher3-1db8bc24679354670f3d89a84b11d31e076fedc6.tar.gz
Add QuickstepWidgetHolder for widget handling
Fix: 235358918 Test: Manual 1. Rebooted the device and verified that widgets are still updating properly 2. Changed the theme from dark to daylight, then from daylight back to dark and verified that widgets are working 3. Kept the device on for several days and verified that widgets are still updating 4. Turn on auto-rotate for the launcher, open any app then exit, verified that widgets will not vanish and reappear 5. Add & remove widgets from the screen, added widgets are still updating Change-Id: I98ee902f7d16b47bd77626201a4fefc897ba17a0
Diffstat (limited to 'src_ui_overrides')
-rw-r--r--src_ui_overrides/com/android/launcher3/uioverrides/ApiWrapper.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/src_ui_overrides/com/android/launcher3/uioverrides/ApiWrapper.java b/src_ui_overrides/com/android/launcher3/uioverrides/ApiWrapper.java
index 02f4ecee3c..47bf135cee 100644
--- a/src_ui_overrides/com/android/launcher3/uioverrides/ApiWrapper.java
+++ b/src_ui_overrides/com/android/launcher3/uioverrides/ApiWrapper.java
@@ -17,14 +17,9 @@
package com.android.launcher3.uioverrides;
import android.app.Person;
-import android.appwidget.AppWidgetHost;
import android.content.pm.ShortcutInfo;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-
import com.android.launcher3.Utilities;
-import com.android.launcher3.widget.LauncherWidgetHolder;
/**
* A wrapper for the hidden API calls
@@ -36,14 +31,4 @@ public class ApiWrapper {
public static Person[] getPersons(ShortcutInfo si) {
return Utilities.EMPTY_PERSON_ARRAY;
}
-
- /**
- * Set the interaction handler for the host
- * @param host AppWidgetHost that needs the interaction handler
- * @param handler InteractionHandler for the views in the host
- */
- public static void setHostInteractionHandler(@NonNull AppWidgetHost host,
- @Nullable LauncherWidgetHolder.LauncherWidgetInteractionHandler handler) {
- // No-op
- }
}