use of com.android.settings.AnimationScalePreference in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class AnimatorDurationScalePreferenceController method updateAnimationScaleValue.
private void updateAnimationScaleValue() {
try {
final float scale = mWindowManager.getAnimationScale(ANIMATOR_DURATION_SCALE_SELECTOR);
final AnimationScalePreference durationPreference = (AnimationScalePreference) mPreference;
durationPreference.setOnPreferenceClickListener(this);
durationPreference.setScale(scale);
} catch (RemoteException e) {
// intentional no-op
}
}
use of com.android.settings.AnimationScalePreference in project android_packages_apps_Settings by crdroidandroid.
the class DevelopmentSettings method findAndInitAnimationScalePreference.
private AnimationScalePreference findAndInitAnimationScalePreference(String key) {
AnimationScalePreference pref = (AnimationScalePreference) findPreference(key);
pref.setOnPreferenceChangeListener(this);
pref.setOnPreferenceClickListener(this);
mAllPrefs.add(pref);
return pref;
}
use of com.android.settings.AnimationScalePreference in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class TransitionAnimationScalePreferenceController method updateAnimationScaleValue.
private void updateAnimationScaleValue() {
try {
final float scale = mWindowManager.getAnimationScale(TRANSITION_ANIMATION_SCALE_SELECTOR);
final AnimationScalePreference transitionPreference = (AnimationScalePreference) mPreference;
transitionPreference.setOnPreferenceClickListener(this);
transitionPreference.setScale(scale);
} catch (RemoteException e) {
// intentional no-op
}
}
use of com.android.settings.AnimationScalePreference in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class WindowAnimationScalePreferenceController method updateAnimationScaleValue.
private void updateAnimationScaleValue() {
try {
final float scale = mWindowManager.getAnimationScale(WINDOW_ANIMATION_SCALE_SELECTOR);
final AnimationScalePreference windowPreference = (AnimationScalePreference) mPreference;
windowPreference.setOnPreferenceClickListener(this);
windowPreference.setScale(scale);
} catch (RemoteException e) {
// intentional no-op
}
}
Aggregations