Upgrade SearchPreference and use our own 'more' string (#7656)

This commit is contained in:
ByteHamster 2025-02-15 14:16:53 +01:00 committed by GitHub
parent f4f7dc716c
commit dbadb58d8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 3 deletions

View File

@ -535,7 +535,7 @@ public class MainActivity extends CastEnabledActivity {
0, getString(NavigationNames.getShortLabel(tag)));
item.setIcon(NavigationNames.getDrawable(tag));
}
MenuItem moreItem = menu.add(0, R.id.bottom_navigation_more, 0, getString(R.string.searchpreference_more));
MenuItem moreItem = menu.add(0, R.id.bottom_navigation_more, 0, getString(R.string.overflow_more));
moreItem.setIcon(R.drawable.dots_vertical);
bottomNavigationView.setOnItemSelectedListener(bottomItemSelectedListener);
updateBottomNavigationBadgeIfNeeded();

View File

@ -3,6 +3,7 @@ pluginManagement {
google()
mavenCentral()
gradlePluginPortal()
mavenLocal()
}
}
@ -12,6 +13,7 @@ dependencyResolutionManagement {
google()
mavenCentral()
maven { url "https://jitpack.io" }
mavenLocal()
}
}

View File

@ -411,6 +411,8 @@
<string name="preference_search_hint">Search…</string>
<string name="preference_search_no_results">No results</string>
<string name="preference_search_clear_history">Clear history</string>
<string name="preference_search_clear_input">Clear</string>
<string name="overflow_more">More</string>
<string name="pref_episode_cleanup_title">Delete before auto download</string>
<string name="pref_episode_cleanup_summary">Episodes that should be eligible for removal if Auto Download needs space for new episodes</string>
<string name="pref_pauseOnDisconnect_sum">Pause playback when headphones or bluetooth are disconnected</string>

View File

@ -46,5 +46,5 @@ dependencies {
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
implementation "org.greenrobot:eventbus:$eventbusVersion"
implementation 'com.github.ByteHamster:SearchPreference:v2.5.0'
implementation 'com.github.ByteHamster:SearchPreference:2.7.1'
}

View File

@ -7,7 +7,9 @@
android:key="searchPreference"
search:textHint="@string/preference_search_hint"
search:textNoResults="@string/preference_search_no_results"
search:textClearHistory="@string/preference_search_clear_history" />
search:textClearHistory="@string/preference_search_clear_history"
search:textClearInput="@string/preference_search_clear_input"
search:textMore="@string/overflow_more" />
<Preference
android:key="prefScreenInterface"