OSDN Git Service

remove the setting for fancy rotation animation
authorMathias Agopian <mathias@google.com>
Sat, 11 Jul 2009 00:00:43 +0000 (17:00 -0700)
committerMathias Agopian <mathias@google.com>
Sat, 11 Jul 2009 00:00:43 +0000 (17:00 -0700)
apps/SpareParts/res/values/strings.xml
apps/SpareParts/res/xml/spare_parts.xml
apps/SpareParts/src/com/android/spare_parts/SpareParts.java

index 7bd13e5..6aecca8 100644 (file)
     <string name="summary_on_fancy_ime_animations">Use fancier animations for input method windows</string>
     <string name="summary_off_fancy_ime_animations">Use normal animations for input method windows</string>
     
-    <string name="title_fancy_rotation_animations">Fancy rotation animations</string>
-    <string name="summary_on_fancy_rotation_animations">Use fancier animations for screen rotation</string>
-    <string name="summary_off_fancy_rotation_animations">Use normal animations for screen rotation</string>
-    
     <string name="title_haptic_feedback">Haptic feedback</string>
     <string name="summary_on_haptic_feedback">Use haptic feedback with user interaction</string>
     <string name="summary_off_haptic_feedback">Use haptic feedback with user interaction</string>
index 3ef1b79..3e06397 100644 (file)
             android:summaryOn="@string/summary_on_fancy_ime_animations"
             android:summaryOff="@string/summary_off_fancy_ime_animations"/>
         
-        <CheckBoxPreference 
-            android:key="fancy_rotation_animations" 
-            android:title="@string/title_fancy_rotation_animations" 
-            android:summaryOn="@string/summary_on_fancy_rotation_animations"
-            android:summaryOff="@string/summary_off_fancy_rotation_animations"/>
-        
         <ListPreference
                 android:key="font_size"
                 android:title="@string/title_font_size"
index c00cc51..2507746 100644 (file)
@@ -54,7 +54,6 @@ public class SpareParts extends PreferenceActivity
     private static final String WINDOW_ANIMATIONS_PREF = "window_animations";
     private static final String TRANSITION_ANIMATIONS_PREF = "transition_animations";
     private static final String FANCY_IME_ANIMATIONS_PREF = "fancy_ime_animations";
-    private static final String FANCY_ROTATION_ANIMATIONS_PREF = "fancy_rotation_animations";
     private static final String HAPTIC_FEEDBACK_PREF = "haptic_feedback";
     private static final String FONT_SIZE_PREF = "font_size";
     private static final String END_BUTTON_PREF = "end_button";
@@ -65,7 +64,6 @@ public class SpareParts extends PreferenceActivity
     private ListPreference mWindowAnimationsPref;
     private ListPreference mTransitionAnimationsPref;
     private CheckBoxPreference mFancyImeAnimationsPref;
-    private CheckBoxPreference mFancyRotationAnimationsPref;
     private CheckBoxPreference mHapticFeedbackPref;
     private ListPreference mFontSizePref;
     private ListPreference mEndButtonPref;
@@ -120,7 +118,6 @@ public class SpareParts extends PreferenceActivity
         mTransitionAnimationsPref = (ListPreference) prefSet.findPreference(TRANSITION_ANIMATIONS_PREF);
         mTransitionAnimationsPref.setOnPreferenceChangeListener(this);
         mFancyImeAnimationsPref = (CheckBoxPreference) prefSet.findPreference(FANCY_IME_ANIMATIONS_PREF);
-        mFancyRotationAnimationsPref = (CheckBoxPreference) prefSet.findPreference(FANCY_ROTATION_ANIMATIONS_PREF);
         mHapticFeedbackPref = (CheckBoxPreference) prefSet.findPreference(HAPTIC_FEEDBACK_PREF);
         mFontSizePref = (ListPreference) prefSet.findPreference(FONT_SIZE_PREF);
         mFontSizePref.setOnPreferenceChangeListener(this);
@@ -146,9 +143,6 @@ public class SpareParts extends PreferenceActivity
             mFancyImeAnimationsPref.setChecked(Settings.System.getInt(
                     getContentResolver(), 
                     Settings.System.FANCY_IME_ANIMATIONS, 0) != 0);
-            mFancyRotationAnimationsPref.setChecked(Settings.System.getInt(
-                    getContentResolver(), 
-                    "fancy_rotation_anim", 0) != 0);
             mHapticFeedbackPref.setChecked(Settings.System.getInt(
                     getContentResolver(), 
                     Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) != 0);
@@ -247,10 +241,6 @@ public class SpareParts extends PreferenceActivity
             Settings.System.putInt(getContentResolver(),
                     Settings.System.FANCY_IME_ANIMATIONS,
                     mFancyImeAnimationsPref.isChecked() ? 1 : 0);
-        } else if (FANCY_ROTATION_ANIMATIONS_PREF.equals(key)) {
-            Settings.System.putInt(getContentResolver(),
-                    "fancy_rotation_anim",
-                    mFancyRotationAnimationsPref.isChecked() ? 1 : 0);
         } else if (HAPTIC_FEEDBACK_PREF.equals(key)) {
             Settings.System.putInt(getContentResolver(),
                     Settings.System.HAPTIC_FEEDBACK_ENABLED,