Skip to content

Commit

Permalink
SingleSelectionPreferences : fx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Jan 26, 2024
1 parent 625a89d commit 7026597
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public void onAttached() {
}
}

public void setSelectedItem(int index) {
onPreferenceClick(getPreference(index));
}

@Override
public boolean onPreferenceClick(@NonNull Preference preference) {
int index = findPreferenceIndex(preference);
Expand Down

0 comments on commit 7026597

Please sign in to comment.