Пример #1
0
 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) {
   }
 }
Пример #2
0
 private void updateAnimationScaleOptions() {
   updateAnimationScaleValue(0, mWindowAnimationScale);
   updateAnimationScaleValue(1, mTransitionAnimationScale);
 }