mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-05-21 00:37:10 +02:00
fix(YouTube - Settings): Correctly show summary text if search box is closed before searching
This commit is contained in:
parent
494912baf8
commit
d0ae835d33
@ -420,10 +420,12 @@ class PreferenceSearchData extends AbstractPreferenceSearchData<Preference> {
|
||||
|
||||
@CallSuper
|
||||
void clearHighlighting() {
|
||||
super.clearHighlighting();
|
||||
|
||||
if (highlightingApplied) {
|
||||
preference.setSummary(originalSummary);
|
||||
}
|
||||
|
||||
super.clearHighlighting();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -472,11 +474,13 @@ class SwitchPreferenceSearchData extends AbstractPreferenceSearchData<SwitchPref
|
||||
|
||||
@CallSuper
|
||||
void clearHighlighting() {
|
||||
super.clearHighlighting();
|
||||
|
||||
if (highlightingApplied) {
|
||||
preference.setSummaryOn(originalSummaryOn);
|
||||
preference.setSummaryOff(originalSummaryOff);
|
||||
}
|
||||
|
||||
super.clearHighlighting();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -529,8 +533,10 @@ class ListPreferenceSearchData extends AbstractPreferenceSearchData<ListPreferen
|
||||
|
||||
@CallSuper
|
||||
void clearHighlighting() {
|
||||
super.clearHighlighting();
|
||||
|
||||
if (highlightingApplied) {
|
||||
preference.setEntries(originalEntries);
|
||||
}
|
||||
|
||||
super.clearHighlighting();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user