Merge "Fix bug 3391818 - Keyboard covers the "Show in chat list" selection in talk > Friend Info" into honeycomb

This commit is contained in:
Adam Powell
2011-01-27 13:53:03 -08:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions

View File

@@ -190,6 +190,7 @@ public class ListPopupWindow {
public ListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
mContext = context;
mPopup = new PopupWindow(context, attrs, defStyleAttr, defStyleRes);
mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
}
/**
@@ -576,7 +577,6 @@ public class ListPopupWindow {
}
mPopup.setWindowLayoutMode(widthSpec, heightSpec);
mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
mPopup.setClipToScreenEnabled(true);
// use outside touchable to dismiss drop down when touching outside of it, so

View File

@@ -665,6 +665,7 @@ public class Spinner extends AbsSpinner implements OnClickListener {
@Override
public void show() {
setWidth(Spinner.this.getWidth());
setInputMethodMode(ListPopupWindow.INPUT_METHOD_NOT_NEEDED);
super.show();
getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
setSelection(Spinner.this.getSelectedItemPosition());