From 5739510fd465f1ffd63e628c932f40879f448381 Mon Sep 17 00:00:00 2001 From: veliymolfar Date: Fri, 12 Jun 2020 17:53:04 +0300 Subject: [PATCH] hide keyboard on expire time set --- OsmAnd/src/net/osmand/plus/mapsource/ExpireTimeBottomSheet.java | 2 ++ .../net/osmand/plus/mapsource/InputZoomLevelsBottomSheet.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapsource/ExpireTimeBottomSheet.java b/OsmAnd/src/net/osmand/plus/mapsource/ExpireTimeBottomSheet.java index d0f1e10654..a0eebe806e 100644 --- a/OsmAnd/src/net/osmand/plus/mapsource/ExpireTimeBottomSheet.java +++ b/OsmAnd/src/net/osmand/plus/mapsource/ExpireTimeBottomSheet.java @@ -14,6 +14,7 @@ import androidx.fragment.app.FragmentManager; import com.google.android.material.textfield.TextInputEditText; import com.google.android.material.textfield.TextInputLayout; +import net.osmand.AndroidUtils; import net.osmand.PlatformUtil; import net.osmand.plus.OsmandApplication; import net.osmand.plus.R; @@ -78,6 +79,7 @@ public class ExpireTimeBottomSheet extends MenuBottomSheetDialogFragment { @Override protected void onRightBottomButtonClick() { + AndroidUtils.hideSoftKeyboard(requireActivity(), editText); Fragment fragment = getTargetFragment(); if (fragment instanceof OnExpireValueSetListener) { ((OnExpireValueSetListener) fragment).onExpireValueSet(getExpireValue()); diff --git a/OsmAnd/src/net/osmand/plus/mapsource/InputZoomLevelsBottomSheet.java b/OsmAnd/src/net/osmand/plus/mapsource/InputZoomLevelsBottomSheet.java index 6827355429..134161c67e 100644 --- a/OsmAnd/src/net/osmand/plus/mapsource/InputZoomLevelsBottomSheet.java +++ b/OsmAnd/src/net/osmand/plus/mapsource/InputZoomLevelsBottomSheet.java @@ -175,7 +175,7 @@ public class InputZoomLevelsBottomSheet extends MenuBottomSheetDialogFragment { dismissDialog.setTitle(activity.getString(R.string.osmand_parking_warning)); dismissDialog.setMessage(activity.getString(R.string.clear_tiles_warning)); dismissDialog.setNegativeButton(R.string.shared_string_cancel, null); - dismissDialog.setPositiveButton(R.string.shared_string_ok, onPositiveListener); + dismissDialog.setPositiveButton(R.string.shared_string_continue, onPositiveListener); dismissDialog.show(); }