hide keyboard on expire time set
This commit is contained in:
parent
30674159e1
commit
5739510fd4
2 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue