Tweak[profile-selector]: keep focus on the selected profiles

This commit is contained in:
Mathias-Boulay 2023-12-10 14:26:04 +01:00
parent 5336b80485
commit 2a95a306bd

View File

@ -127,6 +127,8 @@ public class mcVersionSpinner extends ExtendedTextView {
return;
}
mPopupWindow.showAsDropDown(mcVersionSpinner.this, 0, offset);
// Post() is required for the layout inflation phase
post(() -> mListView.setSelection(mSelectedIndex));
}
});
}