Fix when adjusting the display size, the font size flashes.

Action:
By super to access the parent function to save the highlighted state of the preference.

Bug: 250800752
Test: manual test
Change-Id: Idca9a4f31910638c19f26ff01136530d17677055
This commit is contained in:
Peter Liang
2022-12-21 21:21:13 +08:00
parent 2c7f06e9b3
commit 494f76d115

View File

@@ -210,6 +210,8 @@ public class TextReadingPreferenceFragment extends DashboardFragment {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
if (mNeedResetSettings) {
outState.putBoolean(NEED_RESET_SETTINGS, true);
}