diff options
author | djMesias <djmesias@terra.es> | 2012-10-22 22:04:17 +0200 |
---|---|---|
committer | djMesias <djmesias@terra.es> | 2012-10-22 22:10:44 +0200 |
commit | 4c2bf8df9c630eaaf9ca99869110d50ec4f924e1 (patch) | |
tree | b48b13b16c24ce14581605205fd570b0313ca634 | |
parent | f9270e1713e821fc58ebe56b4a64f075b86fe0ad (diff) | |
download | device_samsung_tuna-4c2bf8df9c630eaaf9ca99869110d50ec4f924e1.zip device_samsung_tuna-4c2bf8df9c630eaaf9ca99869110d50ec4f924e1.tar.gz device_samsung_tuna-4c2bf8df9c630eaaf9ca99869110d50ec4f924e1.tar.bz2 |
GNexusParts: Fixed vibrator tuning layout
Change-Id: Id96731b5fd87d2251f9f0069e3906059a977ef91
3 files changed, 10 insertions, 4 deletions
diff --git a/GNexusParts/res/layout/preference_dialog_vibrator_tuning.xml b/GNexusParts/res/layout/preference_dialog_vibrator_tuning.xml index 4b7d6ba..9ffc414 100644 --- a/GNexusParts/res/layout/preference_dialog_vibrator_tuning.xml +++ b/GNexusParts/res/layout/preference_dialog_vibrator_tuning.xml @@ -36,19 +36,24 @@ android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_horizontal" android:layout_below="@+id/vibrator_seekbar" > <Button android:id="@+id/btnvibratorDefault" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/vibrator_default_title" /> + android:text="@string/vibrator_default_title" + android:textSize="12dp" + android:width="100dp" /> <Button android:id="@+id/btnvibratorTest" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/vibrator_test_title" /> + android:text="@string/vibrator_test_title" + android:textSize="12dp" + android:width="100dp" /> </LinearLayout> diff --git a/GNexusParts/res/values-es/strings.xml b/GNexusParts/res/values-es/strings.xml index b7efdef..90eaee0 100644 --- a/GNexusParts/res/values-es/strings.xml +++ b/GNexusParts/res/values-es/strings.xml @@ -32,6 +32,7 @@ <string name="vibrator_title">Vibración %</string> <string name="vibrator_default_title">Predet.</string> + <string name="vibrator_test_title">Probar</string> <string name="preset1_default_title">Predet.</string> <string name="preset2_default_title">Máximo</string> diff --git a/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java b/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java index bad754c..f8aec17 100644 --- a/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java +++ b/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java @@ -271,7 +271,7 @@ public class VibratorTuningPreference extends DialogPreference implements OnClic } private void testVibration() { - Vibrator vib = (Vibrator) this.getContext().getSystemService(Context.VIBRATOR_SERVICE); - vib.vibrate(1000); + Vibrator vib = (Vibrator) this.getContext().getSystemService(Context.VIBRATOR_SERVICE); + vib.vibrate(1000); } } |