Merge "Catching additional case where menu would disappear in accessibility." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6a9f4a997c
@@ -86,6 +86,7 @@ public class PipMenuActivity extends Activity {
|
||||
private static final float DISABLED_ACTION_ALPHA = 0.54f;
|
||||
|
||||
private boolean mMenuVisible;
|
||||
private boolean mAllowMenuTimeout = true;
|
||||
private final List<RemoteAction> mActions = new ArrayList<>();
|
||||
private View mViewRoot;
|
||||
private Drawable mBackgroundDrawable;
|
||||
@@ -190,7 +191,9 @@ public class PipMenuActivity extends Activity {
|
||||
|
||||
@Override
|
||||
public void onUserInteraction() {
|
||||
repostDelayedFinish(POST_INTERACTION_DISMISS_DELAY);
|
||||
if (mAllowMenuTimeout) {
|
||||
repostDelayedFinish(POST_INTERACTION_DISMISS_DELAY);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -255,6 +258,7 @@ public class PipMenuActivity extends Activity {
|
||||
}
|
||||
|
||||
private void showMenu(Rect stackBounds, Rect movementBounds, boolean allowMenuTimeout) {
|
||||
mAllowMenuTimeout = allowMenuTimeout;
|
||||
if (!mMenuVisible) {
|
||||
updateActionViews(stackBounds);
|
||||
if (mMenuContainerAnimator != null) {
|
||||
|
||||
Reference in New Issue
Block a user