From a05e4a14814377d505ba206af712dd5bde078474 Mon Sep 17 00:00:00 2001 From: Philippe Latulippe Date: Fri, 14 Nov 2014 16:21:15 +0100 Subject: [PATCH] Fix scrolling in the POI editor --- OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java b/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java index 7d49fdae14..176f3aa7ef 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java @@ -41,6 +41,7 @@ import android.text.TextWatcher; import android.text.method.LinkMovementMethod; import android.view.Gravity; import android.view.View; +import android.view.WindowManager; import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView; import android.widget.Button; @@ -312,6 +313,9 @@ public class EditingPOIActivity implements DialogProvider { private Dialog createPOIDialog(final int dialogID, Bundle args) { final Dialog dlg = new Dialog(ctx); dlg.setContentView(R.layout.editing_poi); + + dlg.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);; + nameText = ((EditText)dlg.findViewById(R.id.Name)); openingHours = ((EditText)dlg.findViewById(R.id.OpeningHours)); typeText = ((AutoCompleteTextView)dlg.findViewById(R.id.Type));