Search in sources :

Example 1 with AnimationScalePreference

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
    }
}
Also used : AnimationScalePreference(com.android.settings.AnimationScalePreference) RemoteException(android.os.RemoteException)

Example 2 with AnimationScalePreference

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;
}
Also used : AnimationScalePreference(com.android.settings.AnimationScalePreference)

Example 3 with AnimationScalePreference

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
    }
}
Also used : AnimationScalePreference(com.android.settings.AnimationScalePreference) RemoteException(android.os.RemoteException)

Example 4 with AnimationScalePreference

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
    }
}
Also used : AnimationScalePreference(com.android.settings.AnimationScalePreference) RemoteException(android.os.RemoteException)

Aggregations

AnimationScalePreference (com.android.settings.AnimationScalePreference)4 RemoteException (android.os.RemoteException)3