Loading packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -92,6 +92,9 @@ public class RecentsActivity extends Activity { R.anim.recents_return_to_launcher_enter, R.anim.recents_return_to_launcher_enter, R.anim.recents_return_to_launcher_exit); R.anim.recents_return_to_launcher_exit); mForeground = false; mForeground = false; if (mRecentsPanel != null) { mRecentsPanel.dismissContextMenuIfAny(); } super.onPause(); super.onPause(); } } Loading packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -288,6 +288,11 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener return pointInside(x, y, (View) mRecentsContainer); return pointInside(x, y, (View) mRecentsContainer); } } public void dismissContextMenuIfAny() { if(mPopup != null) { mPopup.dismiss(); } } public void show(boolean show) { public void show(boolean show) { show(show, null, false, false); show(show, null, false, false); } } Loading Loading @@ -756,6 +761,9 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener public void handleLongPress( public void handleLongPress( final View selectedView, final View anchorView, final View thumbnailView) { final View selectedView, final View anchorView, final View thumbnailView) { if(mPopup != null) { mPopup.dismiss(); } thumbnailView.setSelected(true); thumbnailView.setSelected(true); final PopupMenu popup = final PopupMenu popup = new PopupMenu(mContext, anchorView == null ? selectedView : anchorView); new PopupMenu(mContext, anchorView == null ? selectedView : anchorView); Loading Loading
packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -92,6 +92,9 @@ public class RecentsActivity extends Activity { R.anim.recents_return_to_launcher_enter, R.anim.recents_return_to_launcher_enter, R.anim.recents_return_to_launcher_exit); R.anim.recents_return_to_launcher_exit); mForeground = false; mForeground = false; if (mRecentsPanel != null) { mRecentsPanel.dismissContextMenuIfAny(); } super.onPause(); super.onPause(); } } Loading
packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -288,6 +288,11 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener return pointInside(x, y, (View) mRecentsContainer); return pointInside(x, y, (View) mRecentsContainer); } } public void dismissContextMenuIfAny() { if(mPopup != null) { mPopup.dismiss(); } } public void show(boolean show) { public void show(boolean show) { show(show, null, false, false); show(show, null, false, false); } } Loading Loading @@ -756,6 +761,9 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener public void handleLongPress( public void handleLongPress( final View selectedView, final View anchorView, final View thumbnailView) { final View selectedView, final View anchorView, final View thumbnailView) { if(mPopup != null) { mPopup.dismiss(); } thumbnailView.setSelected(true); thumbnailView.setSelected(true); final PopupMenu popup = final PopupMenu popup = new PopupMenu(mContext, anchorView == null ? selectedView : anchorView); new PopupMenu(mContext, anchorView == null ? selectedView : anchorView); Loading