summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/AbstractFloatingView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/AbstractFloatingView.java')
-rw-r--r--src/com/android/launcher3/AbstractFloatingView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/AbstractFloatingView.java b/src/com/android/launcher3/AbstractFloatingView.java
index c1f083d130..c75509eaba 100644
--- a/src/com/android/launcher3/AbstractFloatingView.java
+++ b/src/com/android/launcher3/AbstractFloatingView.java
@@ -123,9 +123,11 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
protected abstract boolean isOfType(@FloatingViewType int type);
- public void onBackPressed() {
+ /** @return Whether the back is consumed. If false, Launcher will handle the back as well. */
+ public boolean onBackPressed() {
logActionCommand(Action.Command.BACK);
close(true);
+ return true;
}
@Override