Skip to content

Commit c201623

Browse files
ecgrebsarahsnow1
authored andcommitted
Should not extract search IME UI in landscape mode (#333)
1 parent 60d62a6 commit c201623

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mapzen-places-api/src/main/java/com/mapzen/places/api/internal/PlaceAutocompleteActivity.java

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import android.support.v7.app.AppCompatActivity;
2525
import android.util.Log;
2626
import android.view.View;
27+
import android.view.inputmethod.EditorInfo;
2728
import android.widget.ImageView;
2829

2930
import static com.mapzen.places.api.internal.PlaceIntentConsts.EXTRA_BOUNDS;
@@ -105,6 +106,8 @@ public class PlaceAutocompleteActivity extends AppCompatActivity
105106
} else {
106107
peliasSearchView = (PeliasSearchView) findViewById(R.id.pelias_search_view);
107108
}
109+
peliasSearchView.setImeOptions(peliasSearchView.getImeOptions() |
110+
EditorInfo.IME_FLAG_NO_EXTRACT_UI);
108111
peliasSearchView.setIconifiedByDefault(false);
109112
peliasSearchView.setCallback(new Callback<Result>() {
110113
@Override public void onResponse(Call<Result> call, Response<Result> response) {

0 commit comments

Comments
 (0)