Merge "Don't expand the SearchView if already expanded." into ics-mr1

This commit is contained in:
Amith Yamasani
2011-11-02 11:43:53 -07:00
committed by Android (Google) Code Review

View File

@@ -1187,6 +1187,8 @@ public class SearchView extends LinearLayout implements CollapsibleActionView {
*/
@Override
public void onActionViewExpanded() {
if (mExpandedInActionView) return;
mExpandedInActionView = true;
mCollapsedImeOptions = mQueryTextView.getImeOptions();
mQueryTextView.setImeOptions(mCollapsedImeOptions | EditorInfo.IME_FLAG_NO_FULLSCREEN);