fix(YouTube - Settings): Correctly show summary text if search box is closed before searching
This commit is contained in:
parent
dfb552b01a
commit
e59c9e9b3c
1 changed files with 13 additions and 7 deletions
|
|
@ -420,9 +420,11 @@ class PreferenceSearchData extends AbstractPreferenceSearchData<Preference> {
|
||||||
|
|
||||||
@CallSuper
|
@CallSuper
|
||||||
void clearHighlighting() {
|
void clearHighlighting() {
|
||||||
super.clearHighlighting();
|
if (highlightingApplied) {
|
||||||
|
preference.setSummary(originalSummary);
|
||||||
|
}
|
||||||
|
|
||||||
preference.setSummary(originalSummary);
|
super.clearHighlighting();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -472,10 +474,12 @@ class SwitchPreferenceSearchData extends AbstractPreferenceSearchData<SwitchPref
|
||||||
|
|
||||||
@CallSuper
|
@CallSuper
|
||||||
void clearHighlighting() {
|
void clearHighlighting() {
|
||||||
super.clearHighlighting();
|
if (highlightingApplied) {
|
||||||
|
preference.setSummaryOn(originalSummaryOn);
|
||||||
|
preference.setSummaryOff(originalSummaryOff);
|
||||||
|
}
|
||||||
|
|
||||||
preference.setSummaryOn(originalSummaryOn);
|
super.clearHighlighting();
|
||||||
preference.setSummaryOff(originalSummaryOff);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -529,8 +533,10 @@ class ListPreferenceSearchData extends AbstractPreferenceSearchData<ListPreferen
|
||||||
|
|
||||||
@CallSuper
|
@CallSuper
|
||||||
void clearHighlighting() {
|
void clearHighlighting() {
|
||||||
super.clearHighlighting();
|
if (highlightingApplied) {
|
||||||
|
preference.setEntries(originalEntries);
|
||||||
|
}
|
||||||
|
|
||||||
preference.setEntries(originalEntries);
|
super.clearHighlighting();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue