• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

development


Commit MetaInfo

Revisionbc4a6cc7bb3fd0fad7445697a647078e8118d921 (tree)
Time2009-03-27 09:27:02
AuthorDianne Hackborn <>
CommiterThe Android Open Source Project

Log Message

Automated import from //branches/cupcake/...@143022,143022

Change Summary

Incremental Difference

--- a/apps/SpareParts/res/values/strings.xml
+++ b/apps/SpareParts/res/values/strings.xml
@@ -45,6 +45,10 @@
4545 <string name="summary_on_fancy_ime_animations">Use fancier animations for input method windows</string>
4646 <string name="summary_off_fancy_ime_animations">Use normal animations for input method windows</string>
4747
48+ <string name="title_fancy_rotation_animations">Fancy rotation animations</string>
49+ <string name="summary_on_fancy_rotation_animations">Use fancier animations for screen rotation</string>
50+ <string name="summary_off_fancy_rotation_animations">Use normal animations for screen rotation</string>
51+
4852 <string name="title_haptic_feedback">Haptic feedback</string>
4953 <string name="summary_on_haptic_feedback">Use haptic feedback with user interaction</string>
5054 <string name="summary_off_haptic_feedback">Use haptic feedback with user interaction</string>
--- a/apps/SpareParts/res/xml/spare_parts.xml
+++ b/apps/SpareParts/res/xml/spare_parts.xml
@@ -72,6 +72,12 @@
7272 android:summaryOn="@string/summary_on_fancy_ime_animations"
7373 android:summaryOff="@string/summary_off_fancy_ime_animations"/>
7474
75+ <CheckBoxPreference
76+ android:key="fancy_rotation_animations"
77+ android:title="@string/title_fancy_rotation_animations"
78+ android:summaryOn="@string/summary_on_fancy_rotation_animations"
79+ android:summaryOff="@string/summary_off_fancy_rotation_animations"/>
80+
7581 <ListPreference
7682 android:key="font_size"
7783 android:title="@string/title_font_size"
--- a/apps/SpareParts/src/com/android/spare_parts/SpareParts.java
+++ b/apps/SpareParts/src/com/android/spare_parts/SpareParts.java
@@ -54,6 +54,7 @@ public class SpareParts extends PreferenceActivity
5454 private static final String WINDOW_ANIMATIONS_PREF = "window_animations";
5555 private static final String TRANSITION_ANIMATIONS_PREF = "transition_animations";
5656 private static final String FANCY_IME_ANIMATIONS_PREF = "fancy_ime_animations";
57+ private static final String FANCY_ROTATION_ANIMATIONS_PREF = "fancy_rotation_animations";
5758 private static final String HAPTIC_FEEDBACK_PREF = "haptic_feedback";
5859 private static final String FONT_SIZE_PREF = "font_size";
5960 private static final String END_BUTTON_PREF = "end_button";
@@ -64,6 +65,7 @@ public class SpareParts extends PreferenceActivity
6465 private ListPreference mWindowAnimationsPref;
6566 private ListPreference mTransitionAnimationsPref;
6667 private CheckBoxPreference mFancyImeAnimationsPref;
68+ private CheckBoxPreference mFancyRotationAnimationsPref;
6769 private CheckBoxPreference mHapticFeedbackPref;
6870 private ListPreference mFontSizePref;
6971 private ListPreference mEndButtonPref;
@@ -118,6 +120,7 @@ public class SpareParts extends PreferenceActivity
118120 mTransitionAnimationsPref = (ListPreference) prefSet.findPreference(TRANSITION_ANIMATIONS_PREF);
119121 mTransitionAnimationsPref.setOnPreferenceChangeListener(this);
120122 mFancyImeAnimationsPref = (CheckBoxPreference) prefSet.findPreference(FANCY_IME_ANIMATIONS_PREF);
123+ mFancyRotationAnimationsPref = (CheckBoxPreference) prefSet.findPreference(FANCY_ROTATION_ANIMATIONS_PREF);
121124 mHapticFeedbackPref = (CheckBoxPreference) prefSet.findPreference(HAPTIC_FEEDBACK_PREF);
122125 mFontSizePref = (ListPreference) prefSet.findPreference(FONT_SIZE_PREF);
123126 mFontSizePref.setOnPreferenceChangeListener(this);
@@ -143,6 +146,9 @@ public class SpareParts extends PreferenceActivity
143146 mFancyImeAnimationsPref.setChecked(Settings.System.getInt(
144147 getContentResolver(),
145148 Settings.System.FANCY_IME_ANIMATIONS, 0) != 0);
149+ mFancyRotationAnimationsPref.setChecked(Settings.System.getInt(
150+ getContentResolver(),
151+ "fancy_rotation_anim", 0) != 0);
146152 mHapticFeedbackPref.setChecked(Settings.System.getInt(
147153 getContentResolver(),
148154 Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) != 0);
@@ -241,6 +247,10 @@ public class SpareParts extends PreferenceActivity
241247 Settings.System.putInt(getContentResolver(),
242248 Settings.System.FANCY_IME_ANIMATIONS,
243249 mFancyImeAnimationsPref.isChecked() ? 1 : 0);
250+ } else if (FANCY_ROTATION_ANIMATIONS_PREF.equals(key)) {
251+ Settings.System.putInt(getContentResolver(),
252+ "fancy_rotation_anim",
253+ mFancyRotationAnimationsPref.isChecked() ? 1 : 0);
244254 } else if (HAPTIC_FEEDBACK_PREF.equals(key)) {
245255 Settings.System.putInt(getContentResolver(),
246256 Settings.System.HAPTIC_FEEDBACK_ENABLED,