Skip to content

Commit

Permalink
Tweak[profile-selector]: keep focus on the selected profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias-Boulay committed Dec 10, 2023
1 parent 5336b80 commit 2a95a30
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ public void onClick(View v) {
return;
}
mPopupWindow.showAsDropDown(mcVersionSpinner.this, 0, offset);
// Post() is required for the layout inflation phase
post(() -> mListView.setSelection(mSelectedIndex));
}
});
}
Expand Down

0 comments on commit 2a95a30

Please sign in to comment.