From 56cd3d4beb24dc92356b13a4503631833dd618a8 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Tue, 4 Dec 2012 15:18:19 -0800 Subject: [PATCH 1/8] Mostly working simple login page in the welcome walkthrough --- .../astrid/actfm/ActFmGoogleAuthActivity.java | 2 +- .../welcome_walkthrough_simple_login.xml | 29 ++++++ astrid/res/values/strings-actfm.xml | 12 +-- .../welcome/tutorial/WelcomePagerAdapter.java | 15 ++- .../welcome/tutorial/WelcomeWalkthrough.java | 98 +++++++++++++++++++ 5 files changed, 142 insertions(+), 14 deletions(-) create mode 100644 astrid/res/layout/welcome_walkthrough_simple_login.xml diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmGoogleAuthActivity.java b/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmGoogleAuthActivity.java index 068d099eb..26a07fefe 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmGoogleAuthActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmGoogleAuthActivity.java @@ -41,7 +41,7 @@ import com.todoroo.astrid.service.StatisticsService; */ public class ActFmGoogleAuthActivity extends ListActivity { - private static final String AUTH_TOKEN_TYPE = "oauth2:https://www.googleapis.com/auth/userinfo.profile"; //$NON-NLS-1$ + public static final String AUTH_TOKEN_TYPE = "oauth2:https://www.googleapis.com/auth/userinfo.profile"; //$NON-NLS-1$ public static final String RESULT_EMAIL = "email"; //$NON-NLS-1$ public static final String RESULT_TOKEN = "token"; //$NON-NLS-1$ diff --git a/astrid/res/layout/welcome_walkthrough_simple_login.xml b/astrid/res/layout/welcome_walkthrough_simple_login.xml new file mode 100644 index 000000000..be446732b --- /dev/null +++ b/astrid/res/layout/welcome_walkthrough_simple_login.xml @@ -0,0 +1,29 @@ + + + + + +