Merge "Fix the display/Font preview window appears blank while transitioning between sizes."

This commit is contained in:
PETER LIANG
2022-12-21 02:33:32 +00:00
committed by Android (Google) Code Review
2 changed files with 15 additions and 1 deletions

View File

@@ -48,7 +48,9 @@ class PreviewSizeSeekBarController extends BasePreferenceController implements
final ProgressInteractionListener interactionListener =
mInteractionListener.get();
interactionListener.notifyPreferenceChanged();
// Avoid timing issues to update the corresponding preview fail when clicking
// the increase/decrease button.
seekBar.post(interactionListener::notifyPreferenceChanged);
if (!mSeekByTouch) {
interactionListener.onProgressChanged();