Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f08fdcb authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix IME Switcher menu starting position" into main

parents 90ac451a 460b7c50
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -135,8 +135,8 @@ final class InputMethodMenuControllerNew {
        final RecyclerView recyclerView = contentView
                .requireViewById(com.android.internal.R.id.list);
        recyclerView.setAdapter(new Adapter(items, selectedIndex, inflater, onClickListener));
        // Scroll to the currently selected IME.
        recyclerView.scrollToPosition(selectedIndex);
        // Scroll to the currently selected IME. This must run after the recycler view is laid out.
        recyclerView.post(() -> recyclerView.scrollToPosition(selectedIndex));
        // Indicate that the list can be scrolled.
        recyclerView.setScrollIndicators(
                hasLanguageSettingsButton ? View.SCROLL_INDICATOR_BOTTOM : 0);