summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AbstractFloatingView.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-03-20 17:12:24 -0700
committerTony <twickham@google.com>2017-03-30 16:35:56 -0700
commit26b1746593851e239bfff65ae7a69b809ad87b99 (patch)
tree4f5a73f3253d52304a0f105aa03c2a882038b14a /src/com/android/launcher3/AbstractFloatingView.java
parent4a907d0f9d1c80661c086aa95a8509698f38b324 (diff)
downloadandroid_packages_apps_Trebuchet-26b1746593851e239bfff65ae7a69b809ad87b99.tar.gz
android_packages_apps_Trebuchet-26b1746593851e239bfff65ae7a69b809ad87b99.tar.bz2
android_packages_apps_Trebuchet-26b1746593851e239bfff65ae7a69b809ad87b99.zip
Add support for system shortcuts in popup container
- Currently the system shortcuts are just widgets and app info - As shortcuts, they live in ShortcutsItemView - They are populated either as icons only (if there are deep shortcuts) or as icons + text - Widgets are disabled until binding them is complete (we request for them to be bound on long-press now). We should revisit this. Bug: 34940468 Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242
Diffstat (limited to 'src/com/android/launcher3/AbstractFloatingView.java')
-rw-r--r--src/com/android/launcher3/AbstractFloatingView.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/AbstractFloatingView.java b/src/com/android/launcher3/AbstractFloatingView.java
index dbef05411..1f1203498 100644
--- a/src/com/android/launcher3/AbstractFloatingView.java
+++ b/src/com/android/launcher3/AbstractFloatingView.java
@@ -92,6 +92,9 @@ public abstract class AbstractFloatingView extends LinearLayout {
return mIsOpen;
}
+ protected void onWidgetsBound() {
+ }
+
protected abstract boolean isOfType(@FloatingViewType int type);
protected static <T extends AbstractFloatingView> T getOpenView(