Merge "Go back to previous state when hitting back from discovery bounce" into ub-launcher3-edmonton

This commit is contained in:
TreeHugger Robot
2018-05-21 23:11:56 +00:00
committed by Android (Google) Code Review
4 changed files with 15 additions and 4 deletions

View File

@@ -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