Hide keyboard when PP changes state.

This commit is contained in:
Dmitry Yunitsky 2015-03-03 16:23:33 +03:00 committed by Alex Zolotarev
parent e38918cd1f
commit c7bc79c347

View file

@ -43,6 +43,7 @@ import com.mapswithme.maps.bookmarks.data.Metadata;
import com.mapswithme.maps.bookmarks.data.ParcelablePoint;
import com.mapswithme.maps.location.LocationHelper;
import com.mapswithme.maps.widget.ArrowView;
import com.mapswithme.util.InputUtils;
import com.mapswithme.util.ShareAction;
import com.mapswithme.util.Utils;
import com.mapswithme.util.statistics.Statistics;
@ -208,6 +209,7 @@ public class PlacePageView extends LinearLayout implements View.OnClickListener,
public void setState(State state)
{
InputUtils.hideKeyboard(mEtBookmarkName);
if (mMapObject != null && mMapObject.getType() == MapObjectType.BOOKMARK && state == State.DETAILS)
state = State.BOOKMARK;