private void writeAnimationScaleOption(int which, ListPreference pref, Object newValue) { try { float scale = Float.parseFloat(newValue.toString()); mWindowManager.setAnimationScale(which, scale); updateAnimationScaleValue(which, pref); } catch (RemoteException e) { } }
private void updateAnimationScaleOptions() { updateAnimationScaleValue(0, mWindowAnimationScale); updateAnimationScaleValue(1, mTransitionAnimationScale); }