Skip to content

Commit

Permalink
upgrading library dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
KnollFrank committed May 15, 2024
1 parent 22cfd9f commit 2d779e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion OsmAnd/build-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ dependencies {
implementation "androidx.car.app:app-projected:1.2.0"

implementation 'com.google.android.gms:play-services-location:21.0.1'
implementation 'com.github.ByteHamster:SearchPreference:v2.5.1'
implementation 'com.github.KnollFrank:SearchPreference:d1a3cb44e0'
implementation 'com.google.guava:guava:30.1.1-jre'

//implementation "androidx.tracing:tracing:1.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ private void setupSearchablePreferences() {
if (searchPreference != null) {
final SearchConfiguration config = searchPreference.getSearchConfiguration();
config.setActivity(getMapActivity());
indexItems(getPreferences(getPreferenceScreen()), config);
config.indexItems(getPreferences(getPreferenceScreen()));
}
}

Expand All @@ -411,10 +411,6 @@ private static List<Preference> getPreferences(final PreferenceGroup preferenceG
return preferencesBuilder.build();
}

private static void indexItems(final List<Preference> preferences, final SearchConfiguration config) {
preferences.forEach(config::indexItem);
}

protected void onBindPreferenceViewHolder(@NonNull Preference preference, @NonNull PreferenceViewHolder holder) {
if (preference.isSelectable()) {
View selectableView = holder.itemView.findViewById(R.id.selectable_list_item);
Expand Down

0 comments on commit 2d779e7

Please sign in to comment.