From ec55804c7e2c7abef4e212ecd3c4999ea5cea0e1 Mon Sep 17 00:00:00 2001 From: Patrick Demers Date: Fri, 18 Nov 2022 02:39:42 -0600 Subject: hide keyboard when choosing account from bottom sheet (#1231) --- .../bottomsheetfragments/AccountChooserBottomSheetFragment.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/AccountChooserBottomSheetFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/AccountChooserBottomSheetFragment.java index a358caa2..6eb23968 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/AccountChooserBottomSheetFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/AccountChooserBottomSheetFragment.java @@ -34,6 +34,7 @@ import ml.docilealligator.infinityforreddit.adapters.AccountChooserRecyclerViewA import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper; import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedBottomSheetDialogFragment; import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils; +import ml.docilealligator.infinityforreddit.utils.Utils; public class AccountChooserBottomSheetFragment extends LandscapeExpandedBottomSheetDialogFragment { @@ -61,6 +62,8 @@ public class AccountChooserBottomSheetFragment extends LandscapeExpandedBottomSh ((Infinity) activity.getApplication()).getAppComponent().inject(this); + Utils.hideKeyboard(activity); + recyclerView = rootView.findViewById(R.id.recycler_view_account_chooser_bottom_sheet_fragment); adapter = new AccountChooserRecyclerViewAdapter(activity, customThemeWrapper, Glide.with(this), account -> { -- cgit v1.2.3