hide keyboard when choosing account from bottom sheet (#1231)

This commit is contained in:
Patrick Demers 2022-11-18 02:39:42 -06:00 committed by GitHub
parent 67b6906ead
commit ec55804c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 -> {