Fix the preview should keep the same layer after font or display size change.

Bug: 259213786
Test: make RunSettingsRoboTests ROBOTEST_FILTER=TextReadingPreviewPreferenceTest
Change-Id: Ifc0047e47806662174712bb8628193bee906b384
This commit is contained in:
Peter Liang
2022-12-05 22:00:46 +08:00
parent 2af12acaed
commit f5c7c52ca1
4 changed files with 70 additions and 10 deletions

View File

@@ -133,6 +133,14 @@ class TextReadingPreviewController extends BasePreferenceController implements
postCommitDelayed(CHANGE_BY_SEEKBAR_DELAY_MS);
}
void setCurrentItem(int index) {
mPreviewPreference.setCurrentItem(index);
}
int getCurrentItem() {
return mPreviewPreference.getCurrentItem();
}
/**
* The entry point is used for logging.
*