Ejemplo n.º 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) {
   }
 }
Ejemplo n.º 2
0
 private void updateAnimationScaleOptions() {
   updateAnimationScaleValue(0, mWindowAnimationScale);
   updateAnimationScaleValue(1, mTransitionAnimationScale);
 }