Merge pull request #951 from philippelatulippe/fix-poi-editor-scrolling
Fix scrolling in the POI editor
This commit is contained in:
commit
5ef15a2a71
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,7 @@ import android.text.TextWatcher;
|
||||||
import android.text.method.LinkMovementMethod;
|
import android.text.method.LinkMovementMethod;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.view.WindowManager;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.AutoCompleteTextView;
|
import android.widget.AutoCompleteTextView;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
|
@ -312,6 +313,9 @@ public class EditingPOIActivity implements DialogProvider {
|
||||||
private Dialog createPOIDialog(final int dialogID, Bundle args) {
|
private Dialog createPOIDialog(final int dialogID, Bundle args) {
|
||||||
final Dialog dlg = new Dialog(ctx);
|
final Dialog dlg = new Dialog(ctx);
|
||||||
dlg.setContentView(R.layout.editing_poi);
|
dlg.setContentView(R.layout.editing_poi);
|
||||||
|
|
||||||
|
dlg.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);;
|
||||||
|
|
||||||
nameText = ((EditText)dlg.findViewById(R.id.Name));
|
nameText = ((EditText)dlg.findViewById(R.id.Name));
|
||||||
openingHours = ((EditText)dlg.findViewById(R.id.OpeningHours));
|
openingHours = ((EditText)dlg.findViewById(R.id.OpeningHours));
|
||||||
typeText = ((AutoCompleteTextView)dlg.findViewById(R.id.Type));
|
typeText = ((AutoCompleteTextView)dlg.findViewById(R.id.Type));
|
||||||
|
|
Loading…
Reference in a new issue