am 34dd5824: Merge "Only resize list popup if it\'s still attached to a window" into mnc-dev
* commit '34dd5824f5c6ffe64ddc347cbd0eb65cd9321a7d': Only resize list popup if it's still attached to a window
This commit is contained in:
@@ -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