From ae609a0e5e57e329f1920c7f7c880a1dece4738e Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sat, 3 Nov 2012 15:12:05 -0400 Subject: [PATCH] Set new ringers are enabled by default Signed-off-by: Ricky Barrette --- LocationRinger/AndroidManifest.xml | 4 ++-- LocationRinger/res/layout/ringer_about_fragment.xml | 1 + .../LocationRinger/ui/fragments/AboutRingerFragment.java | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/LocationRinger/AndroidManifest.xml b/LocationRinger/AndroidManifest.xml index 8ca3d97..5670b1b 100644 --- a/LocationRinger/AndroidManifest.xml +++ b/LocationRinger/AndroidManifest.xml @@ -2,8 +2,8 @@ + android:versionCode="199" + android:versionName="ae0eef3" > diff --git a/LocationRinger/res/layout/ringer_about_fragment.xml b/LocationRinger/res/layout/ringer_about_fragment.xml index 02ab2d9..eae67dc 100644 --- a/LocationRinger/res/layout/ringer_about_fragment.xml +++ b/LocationRinger/res/layout/ringer_about_fragment.xml @@ -8,6 +8,7 @@ android:id="@+id/ringer_enabled" android:layout_width="match_parent" android:layout_height="wrap_content" + android:checked="true" android:textOff="@string/disable" android:textOn="@string/enable" /> diff --git a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/fragments/AboutRingerFragment.java b/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/fragments/AboutRingerFragment.java index 03dda59..8518e81 100644 --- a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/fragments/AboutRingerFragment.java +++ b/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/fragments/AboutRingerFragment.java @@ -186,6 +186,7 @@ public class AboutRingerFragment extends Fragment implements OnCheckedChangeList if (mRinger.containsKey(RingerDatabase.KEY_IS_ENABLED)) mRingerEnabled.setChecked(mRinger.getAsBoolean(RingerDatabase.KEY_IS_ENABLED)); mRingerEnabled.setOnCheckedChangeListener(this); + onCheckedChanged(mRingerEnabled, mRingerEnabled.isChecked()); return view; }