diff --git a/astrid/res/values/keys.xml b/astrid/res/values/keys.xml index 421117ef9..3c3ccd6a5 100644 --- a/astrid/res/values/keys.xml +++ b/astrid/res/values/keys.xml @@ -281,6 +281,8 @@ p_use_date_shortcuts + p_hide_plus_button + p_configurations p_config_default diff --git a/astrid/res/values/strings-core.xml b/astrid/res/values/strings-core.xml index b441eee0f..d3d13f842 100644 --- a/astrid/res/values/strings-core.xml +++ b/astrid/res/values/strings-core.xml @@ -746,6 +746,9 @@ Advanced quickadd controls + + Hide plus button + Menu items diff --git a/astrid/res/xml/preferences.xml b/astrid/res/xml/preferences.xml index b4ddd2be6..7d1b2b01c 100644 --- a/astrid/res/xml/preferences.xml +++ b/astrid/res/xml/preferences.xml @@ -156,6 +156,11 @@ android:title="@string/EPr_show_quickadd_controls" android:defaultValue="true" /> + + 0, ifUnset); + extras.setExtras(context, prefs, editor, r, ifUnset); editor.commit(); diff --git a/astrid/src/com/todoroo/astrid/utility/AstridLitePreferenceSpec.java b/astrid/src/com/todoroo/astrid/utility/AstridLitePreferenceSpec.java index f035212d4..21bb285d6 100644 --- a/astrid/src/com/todoroo/astrid/utility/AstridLitePreferenceSpec.java +++ b/astrid/src/com/todoroo/astrid/utility/AstridLitePreferenceSpec.java @@ -12,6 +12,8 @@ import com.todoroo.astrid.activity.BeastModePreferences; import com.todoroo.astrid.core.SortHelper; import com.todoroo.astrid.data.Task; import com.todoroo.astrid.service.ThemeService; +import com.todoroo.astrid.service.abtesting.ABChooser; +import com.todoroo.astrid.service.abtesting.ABTests; import com.todoroo.astrid.utility.AstridDefaultPreferenceSpec.PreferenceExtras; public class AstridLitePreferenceSpec extends AstridPreferenceSpec { @@ -119,6 +121,8 @@ public class AstridLitePreferenceSpec extends AstridPreferenceSpec { setPreference(prefs, editor, r, R.string.p_use_date_shortcuts, false, ifUnset); setPreference(prefs, editor, r, R.string.p_save_and_cancel, false, ifUnset); + + setPreference(prefs, editor, r, R.string.p_hide_plus_button, ABChooser.readChoiceForTest(ABTests.AB_HIDE_PLUS_BUTTON) > 0, ifUnset); extras.setExtras(context, prefs, editor, r, ifUnset);