diff --git a/api/res/values/strings.xml b/api/res/values/strings.xml index 554b6653d..f03f58d67 100644 --- a/api/res/values/strings.xml +++ b/api/res/values/strings.xml @@ -149,7 +149,10 @@ Synchronizing... - Synchronization + Sync & Backup + + + Astrid.com, Google Tasks, Saved Data & Local Backup Connection Error! Check your Internet connection. diff --git a/astrid/AndroidManifest.xml b/astrid/AndroidManifest.xml index abee2b0f9..338891c07 100644 --- a/astrid/AndroidManifest.xml +++ b/astrid/AndroidManifest.xml @@ -268,6 +268,8 @@ + @@ -276,24 +278,6 @@ - - - - - - - - - - - - - - @@ -379,6 +363,8 @@ android:label="@string/actfm_APr_header"> + @@ -459,6 +445,8 @@ android:label="@string/gtasks_GPr_header"> + @@ -505,6 +493,18 @@ + + + + + + + + + + @@ -585,6 +587,8 @@ + @@ -621,6 +625,8 @@ android:label="@string/producteev_PPr_header"> + diff --git a/astrid/plugin-src/com/todoroo/astrid/calls/MissedCallActivity.java b/astrid/plugin-src/com/todoroo/astrid/calls/MissedCallActivity.java index 23643025f..a6337408e 100644 --- a/astrid/plugin-src/com/todoroo/astrid/calls/MissedCallActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/calls/MissedCallActivity.java @@ -30,7 +30,7 @@ import com.todoroo.andlib.service.DependencyInjectionService; import com.todoroo.andlib.utility.AndroidUtilities; import com.todoroo.andlib.utility.DialogUtilities; import com.todoroo.andlib.utility.Preferences; -import com.todoroo.astrid.core.LabsPreferences; +import com.todoroo.astrid.activity.EditPreferences; import com.todoroo.astrid.data.Task; import com.todoroo.astrid.reminders.NotificationFragment.SnoozeDialog; import com.todoroo.astrid.reminders.Notifications; @@ -168,7 +168,7 @@ public class MissedCallActivity extends Activity { ignoreSettingsButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { - Intent labsPreferences = new Intent(MissedCallActivity.this, LabsPreferences.class); + Intent labsPreferences = new Intent(MissedCallActivity.this, EditPreferences.class); startActivity(labsPreferences); finish(); } diff --git a/astrid/plugin-src/com/todoroo/astrid/core/LabsPreferences.java b/astrid/plugin-src/com/todoroo/astrid/core/LabsPreferences.java deleted file mode 100644 index acb37155f..000000000 --- a/astrid/plugin-src/com/todoroo/astrid/core/LabsPreferences.java +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Copyright (c) 2012 Todoroo Inc - * - * See the file "LICENSE" for the full license governing this code. - */ -package com.todoroo.astrid.core; - -import android.content.res.Resources; -import android.preference.Preference; -import android.preference.Preference.OnPreferenceChangeListener; -import android.preference.PreferenceScreen; -import android.text.TextUtils; - -import com.timsu.astrid.R; -import com.todoroo.andlib.utility.AndroidUtilities; -import com.todoroo.andlib.utility.TodorooPreferenceActivity; -import com.todoroo.astrid.activity.EditPreferences; -import com.todoroo.astrid.utility.Constants; - -public class LabsPreferences extends TodorooPreferenceActivity { - - @Override - public int getPreferenceResource() { - return R.xml.preferences_labs; - } - - public static final int RESULT_TLA_NEEDS_REFRESH = 3; - public static final int RESULT_NEEDS_SYNC = 4; - - private class SetResultOnPreferenceChangeListener implements OnPreferenceChangeListener { - private final int resultCode; - public SetResultOnPreferenceChangeListener(int resultCode) { - this.resultCode = resultCode; - } - - @Override - public boolean onPreferenceChange(Preference p, Object newValue) { - setResult(resultCode); - updatePreferences(p, newValue); - return true; - } - } - - @Override - public void onCreate(android.os.Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - EditPreferences.removeForbiddenPreferences(getPreferenceScreen(), getResources()); - - if (!AndroidUtilities.isTabletSized(this)) { - PreferenceScreen screen = getPreferenceScreen(); - screen.removePreference(screen.findPreference(getString(R.string.p_force_phone_layout))); - } - } - - @Override - public void updatePreferences(Preference preference, Object value) { - final Resources r = getResources(); - - String key = preference.getKey(); - if (r.getString(R.string.p_swipe_lists_performance_key).equals(key)) { - preference.setOnPreferenceChangeListener(new SetResultOnPreferenceChangeListener(RESULT_TLA_NEEDS_REFRESH)); - - int index = 0; - if(value instanceof String && !TextUtils.isEmpty((String)value)) - index = AndroidUtilities.indexOf(r.getStringArray(R.array.EPr_swipe_lists_performance_mode_values), (String)value); - if (index < 0) - index = 0; - - String name = r.getStringArray(R.array.EPr_swipe_lists_performance_mode)[index]; - String desc = r.getStringArray(R.array.EPr_swipe_lists_performance_desc)[index]; - preference.setSummary(r.getString(R.string.EPr_swipe_lists_display, name, desc)); - } else if (r.getString(R.string.p_field_missed_calls).equals(key)) { - setEnabledSummary(preference, value, - R.string.MCA_missed_calls_pref_desc_enabled, R.string.MCA_missed_calls_pref_desc_disabled); - } else if (r.getString(R.string.p_use_contact_picker).equals(key)) { - setEnabledSummary(preference, value, - R.string.EPr_use_contact_picker_desc_enabled, R.string.EPr_use_contact_picker_desc_disabled); - } else if (r.getString(R.string.p_third_party_addons).equals(key)) { - setEnabledSummary(preference, value, - R.string.EPr_third_party_addons_desc_enabled, R.string.EPr_third_party_addons_desc_disabled); - } else if (r.getString(R.string.p_end_at_deadline).equals(key)){ - setEnabledSummary(preference, value, R.string.EPr_cal_start_at_due_time, R.string.EPr_cal_end_at_due_time); - } else if (r.getString(R.string.p_ideas_tab_enabled).equals(key)) { - if (!Constants.MARKET_STRATEGY.allowIdeasTab()) { - PreferenceScreen screen = getPreferenceScreen(); - screen.removePreference(preference); - } - } else if (r.getString(R.string.p_force_phone_layout).equals(key)) { - preference.setOnPreferenceChangeListener(new SetResultOnPreferenceChangeListener(RESULT_TLA_NEEDS_REFRESH)); - } else if (r.getString(R.string.p_show_featured_lists_labs).equals(key)) { - preference.setOnPreferenceChangeListener(new SetResultOnPreferenceChangeListener(RESULT_NEEDS_SYNC)); - } - } - - private void setEnabledSummary(Preference preference, Object value, int enabledStr, int disabledStr) { - if (value != null && (Boolean) value) { - preference.setSummary(enabledStr); - } else { - preference.setSummary(disabledStr); - } - } - -} diff --git a/astrid/res/layout/quick_add_bar.xml b/astrid/res/layout/quick_add_bar.xml index cb9cd716e..b6c16ecb8 100644 --- a/astrid/res/layout/quick_add_bar.xml +++ b/astrid/res/layout/quick_add_bar.xml @@ -8,7 +8,7 @@ + diff --git a/astrid/res/values/keys.xml b/astrid/res/values/keys.xml index 8a07945cb..325eaf436 100644 --- a/astrid/res/values/keys.xml +++ b/astrid/res/values/keys.xml @@ -67,6 +67,9 @@ show_featured_lists_labs + + account + 1 diff --git a/astrid/res/values/strings-actfm.xml b/astrid/res/values/strings-actfm.xml index 5cc1d6f90..b7e3bfce7 100644 --- a/astrid/res/values/strings-actfm.xml +++ b/astrid/res/values/strings-actfm.xml @@ -306,6 +306,11 @@ You are currently synchronizing with Google Tasks. Be advised that synchronizing with both services can in some cases lead to unexpected results. Are you sure you want to sync with Astrid.com? + + + Premium + Basic + None diff --git a/astrid/res/values/strings-core.xml b/astrid/res/values/strings-core.xml index 9fc5ab59a..5affa1ab9 100644 --- a/astrid/res/values/strings-core.xml +++ b/astrid/res/values/strings-core.xml @@ -138,7 +138,7 @@ Tutorial - Settings + Account & Settings Support @@ -574,6 +574,21 @@ Appearance + + Themes, Widgets, Task Rows, Edit Screen + + + FAQ + + + Account: %s + + + Cloud sync status and options + + + Tutorial, FAQ, About Astrid + Task List Size diff --git a/astrid/res/values/strings-defaults.xml b/astrid/res/values/strings-defaults.xml index 0271c79f5..e7b217b05 100644 --- a/astrid/res/values/strings-defaults.xml +++ b/astrid/res/values/strings-defaults.xml @@ -8,6 +8,7 @@ New Task Defaults + Importance, Due Date, Add to Calendar Default Urgency diff --git a/astrid/res/values/strings-ppack.xml b/astrid/res/values/strings-ppack.xml index 88f9cdd77..de6dd43c7 100644 --- a/astrid/res/values/strings-ppack.xml +++ b/astrid/res/values/strings-ppack.xml @@ -9,7 +9,8 @@ - Astrid Power Pack + Premium and Misc. Settings + Missed call reminders, voice input and miscellaneous settings Anonymous Usage Stats diff --git a/astrid/res/values/strings-reminders.xml b/astrid/res/values/strings-reminders.xml index 852a8f3b3..315ba547a 100644 --- a/astrid/res/values/strings-reminders.xml +++ b/astrid/res/values/strings-reminders.xml @@ -105,6 +105,7 @@ Reminder Settings + Quiet hours, snooze options, persistence level Reminders Enabled? diff --git a/astrid/res/values/styles.xml b/astrid/res/values/styles.xml index 7bb2ad12b..94b6555e1 100644 --- a/astrid/res/values/styles.xml +++ b/astrid/res/values/styles.xml @@ -36,6 +36,7 @@ @color/blue_theme_color @drawable/lists_disclosure_blue #000000 + ?attr/asAbBackgroundColor @drawable/taskedit_arrow_up_white @drawable/icn_edit_repeats_blue @drawable/list_popover_bg_white @@ -53,6 +54,7 @@