summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar/alerts
diff options
context:
space:
mode:
authorSam Blitzstein <sblitz@google.com>2013-02-26 09:47:52 -0800
committerSam Blitzstein <sblitz@google.com>2013-02-26 12:51:14 -0800
commit1bc7c4b149a3696dca055a3d7a45499851e55d50 (patch)
tree917e327135b8a13193fc7a551ebc2305d1082a11 /src/com/android/calendar/alerts
parent666123ec1274420a77ace01e32df70baf87fca57 (diff)
downloadandroid_packages_apps_Calendar-1bc7c4b149a3696dca055a3d7a45499851e55d50.tar.gz
android_packages_apps_Calendar-1bc7c4b149a3696dca055a3d7a45499851e55d50.tar.bz2
android_packages_apps_Calendar-1bc7c4b149a3696dca055a3d7a45499851e55d50.zip
Refactored strings for experimental reminder setting.
String was too long for setting of skipping reminders for events that have not been responded to. Reformatted the setting from checkbox into radio selection with more consice description. Change-Id: Ic6a689648529212d3ae16359e5386ba0c0f4e587
Diffstat (limited to 'src/com/android/calendar/alerts')
-rw-r--r--src/com/android/calendar/alerts/AlertService.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/android/calendar/alerts/AlertService.java b/src/com/android/calendar/alerts/AlertService.java
index 3d09f592..a343ab54 100644
--- a/src/com/android/calendar/alerts/AlertService.java
+++ b/src/com/android/calendar/alerts/AlertService.java
@@ -44,6 +44,7 @@ import android.util.Log;
import com.android.calendar.GeneralPreferences;
import com.android.calendar.OtherPreferences;
+import com.android.calendar.R;
import com.android.calendar.Utils;
import java.util.ArrayList;
@@ -543,8 +544,13 @@ public class AlertService extends Service {
ArrayList<NotificationInfo> lowPriorityEvents) {
// Experimental reminder setting to only remind for events that have
// been responded to with "yes" or "maybe".
- boolean remindRespondedOnly = Utils.getSharedPreference(context,
- OtherPreferences.KEY_OTHER_REMINDERS_RESPONDED, false);
+ String skipRemindersPref = Utils.getSharedPreference(context,
+ OtherPreferences.KEY_OTHER_REMINDERS_RESPONDED, "");
+ // Skip no-response events if the "Skip Reminders" preference has the second option,
+ // "If declined or not responded", is selected.
+ // Note that by default, the first option will be selected, so this will be false.
+ boolean remindRespondedOnly = skipRemindersPref.equals(context.getResources().
+ getStringArray(R.array.preferences_skip_reminders_values)[1]);
// Experimental reminder setting to silence reminders when they are
// during the pre-defined quiet hours.
boolean useQuietHours = Utils.getSharedPreference(context,