Merge "Only resize list popup if it's still attached to a window" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
34dd5824f5
@@ -1791,8 +1791,9 @@ public class ListPopupWindow {
|
||||
|
||||
private class ResizePopupRunnable implements Runnable {
|
||||
public void run() {
|
||||
if (mDropDownList != null && mDropDownList.getCount() > mDropDownList.getChildCount() &&
|
||||
mDropDownList.getChildCount() <= mListItemExpandMaximum) {
|
||||
if (mDropDownList != null && mDropDownList.isAttachedToWindow()
|
||||
&& mDropDownList.getCount() > mDropDownList.getChildCount()
|
||||
&& mDropDownList.getChildCount() <= mListItemExpandMaximum) {
|
||||
mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED);
|
||||
show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user