summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/folder
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2018-05-21 13:13:58 -0700
committerTony Wickham <twickham@google.com>2018-05-21 16:01:49 -0700
commit52c1b66f46eb4764825f87d4be07c62cd650935c (patch)
tree67b91f059d2232d935c94e9543cf271afe036a41 /src/com/android/launcher3/folder
parent1b74bd652cb4fa8e09590d8aeaaf8a7ff0f92888 (diff)
downloadandroid_packages_apps_Trebuchet-52c1b66f46eb4764825f87d4be07c62cd650935c.tar.gz
android_packages_apps_Trebuchet-52c1b66f46eb4764825f87d4be07c62cd650935c.tar.bz2
android_packages_apps_Trebuchet-52c1b66f46eb4764825f87d4be07c62cd650935c.zip
Go back to previous state when hitting back from discovery bounce
Normally when you hit back, we just close the floating view if there is one. This makes less sense for DiscoveryBounce, since it doesn't feel like a different state even though it's technically a floating view. So in that case, don't consume the back press; let launcher handle it to go to the previous state. Bug: 80075741 Change-Id: I7270b61be70509cb2101400a12929478a5d082aa
Diffstat (limited to 'src/com/android/launcher3/folder')
-rw-r--r--src/com/android/launcher3/folder/Folder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/folder/Folder.java b/src/com/android/launcher3/folder/Folder.java
index b49952f15..6b13da70c 100644
--- a/src/com/android/launcher3/folder/Folder.java
+++ b/src/com/android/launcher3/folder/Folder.java
@@ -1437,12 +1437,13 @@ public class Folder extends AbstractFloatingView implements DragSource,
}
@Override
- public void onBackPressed() {
+ public boolean onBackPressed() {
if (isEditingName()) {
mFolderName.dispatchBackKey();
} else {
super.onBackPressed();
}
+ return true;
}
@Override