Postpone commit on PreviewSeekBarPreferenceFragment
until the cross-fade animation has completed Bug: 27142332 Change-Id: I6c11e89398bad34a3b92560cb73c667a3cfd4786
This commit is contained in:
@@ -79,7 +79,16 @@ public abstract class PreviewSeekBarPreferenceFragment extends SettingsPreferenc
|
||||
|
||||
@Override
|
||||
public void onStopTrackingTouch(SeekBar seekBar) {
|
||||
commit();
|
||||
if (mPreviewPagerAdapter.isAnimating()) {
|
||||
mPreviewPagerAdapter.setAnimationEndAction(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
commit();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
commit();
|
||||
}
|
||||
mSeekByTouch = false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user