Loading core/java/android/widget/ActivityChooserView.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -400,6 +400,9 @@ public class ActivityChooserView extends ViewGroup implements ActivityChooserMod if (viewTreeObserver.isAlive()) { if (viewTreeObserver.isAlive()) { viewTreeObserver.removeOnGlobalLayoutListener(mOnGlobalLayoutListener); viewTreeObserver.removeOnGlobalLayoutListener(mOnGlobalLayoutListener); } } if (isShowingPopup()) { dismissPopup(); } mIsAttachedToWindow = false; mIsAttachedToWindow = false; } } Loading @@ -420,9 +423,7 @@ public class ActivityChooserView extends ViewGroup implements ActivityChooserMod @Override @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { protected void onLayout(boolean changed, int left, int top, int right, int bottom) { mActivityChooserContent.layout(0, 0, right - left, bottom - top); mActivityChooserContent.layout(0, 0, right - left, bottom - top); if (getListPopupWindow().isShowing()) { if (!isShowingPopup()) { showPopupUnchecked(mAdapter.getMaxActivityCount()); } else { dismissPopup(); dismissPopup(); } } } } Loading Loading
core/java/android/widget/ActivityChooserView.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -400,6 +400,9 @@ public class ActivityChooserView extends ViewGroup implements ActivityChooserMod if (viewTreeObserver.isAlive()) { if (viewTreeObserver.isAlive()) { viewTreeObserver.removeOnGlobalLayoutListener(mOnGlobalLayoutListener); viewTreeObserver.removeOnGlobalLayoutListener(mOnGlobalLayoutListener); } } if (isShowingPopup()) { dismissPopup(); } mIsAttachedToWindow = false; mIsAttachedToWindow = false; } } Loading @@ -420,9 +423,7 @@ public class ActivityChooserView extends ViewGroup implements ActivityChooserMod @Override @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { protected void onLayout(boolean changed, int left, int top, int right, int bottom) { mActivityChooserContent.layout(0, 0, right - left, bottom - top); mActivityChooserContent.layout(0, 0, right - left, bottom - top); if (getListPopupWindow().isShowing()) { if (!isShowingPopup()) { showPopupUnchecked(mAdapter.getMaxActivityCount()); } else { dismissPopup(); dismissPopup(); } } } } Loading