File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ public class SearchView extends LinearLayout implements CollapsibleActionView {
120120 private CharSequence mOldQueryText ;
121121 private CharSequence mUserQuery ;
122122 private boolean mExpandedInActionView ;
123+ private int mCollapsedImeOptions ;
123124
124125 private SearchableInfo mSearchable ;
125126 private Bundle mAppSearchData ;
@@ -1166,6 +1167,7 @@ public void onActionViewCollapsed() {
11661167 clearFocus ();
11671168 updateViewsVisibility (true );
11681169 mQueryTextView .setText ("" );
1170+ mQueryTextView .setImeOptions (mCollapsedImeOptions );
11691171 mExpandedInActionView = false ;
11701172 }
11711173
@@ -1175,6 +1177,8 @@ public void onActionViewCollapsed() {
11751177 @ Override
11761178 public void onActionViewExpanded () {
11771179 mExpandedInActionView = true ;
1180+ mCollapsedImeOptions = mQueryTextView .getImeOptions ();
1181+ mQueryTextView .setImeOptions (mCollapsedImeOptions | EditorInfo .IME_FLAG_NO_FULLSCREEN );
11781182 setIconified (false );
11791183 }
11801184
You can’t perform that action at this time.
0 commit comments