From 160df820fa4579c778028ce4ec0e7cf9e0b4bdae Mon Sep 17 00:00:00 2001 From: Mindy Pereira Date: Wed, 16 May 2012 13:36:57 -0700 Subject: [PATCH] Remove Email2 overrides. Use UnifiedEmail styling. Change-Id: I40b138f58464678a98854902b976581b7210fa7b --- .../waiting_for_sync_message.xml | 47 ---------------- .../layout/conversation_item_view_normal.xml | 4 +- .../res/layout/waiting_for_sync_message.xml | 56 ------------------- email2/res/values-sw600dp-land/dimensions.xml | 25 --------- email2/res/values-sw600dp/bools.xml | 22 -------- email2/res/values-sw600dp/colors.xml | 19 ------- email2/res/values-sw600dp/dimensions.xml | 27 +++------ email2/res/values-sw600dp/styles.xml | 6 -- .../dimensions.xml} | 0 email2/res/values/bools.xml | 22 -------- email2/res/values/colors.xml | 38 ++----------- email2/res/values/dimensions.xml | 30 +--------- email2/res/values/styles.xml | 9 --- .../android/email/activity/UiUtilities.java | 13 ----- 14 files changed, 15 insertions(+), 303 deletions(-) delete mode 100644 email2/res/layout-sw600dp/waiting_for_sync_message.xml delete mode 100644 email2/res/layout/waiting_for_sync_message.xml delete mode 100644 email2/res/values-sw600dp-land/dimensions.xml delete mode 100644 email2/res/values-sw600dp/bools.xml delete mode 100644 email2/res/values-sw600dp/colors.xml rename email2/res/{values-sw800dp-land/dimen.xml => values-sw720dp-land/dimensions.xml} (100%) delete mode 100644 email2/res/values/bools.xml diff --git a/email2/res/layout-sw600dp/waiting_for_sync_message.xml b/email2/res/layout-sw600dp/waiting_for_sync_message.xml deleted file mode 100644 index 8c98c096d..000000000 --- a/email2/res/layout-sw600dp/waiting_for_sync_message.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - diff --git a/email2/res/layout/conversation_item_view_normal.xml b/email2/res/layout/conversation_item_view_normal.xml index 1bf8f6634..e0652bd87 100644 --- a/email2/res/layout/conversation_item_view_normal.xml +++ b/email2/res/layout/conversation_item_view_normal.xml @@ -24,7 +24,7 @@ - - - - - - - - - - - - - - diff --git a/email2/res/values-sw600dp-land/dimensions.xml b/email2/res/values-sw600dp-land/dimensions.xml deleted file mode 100644 index 6e71363f5..000000000 --- a/email2/res/values-sw600dp-land/dimensions.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - 16dip - 64dip - 64dip - - diff --git a/email2/res/values-sw600dp/bools.xml b/email2/res/values-sw600dp/bools.xml deleted file mode 100644 index 60275191d..000000000 --- a/email2/res/values-sw600dp/bools.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - true - - - true - diff --git a/email2/res/values-sw600dp/colors.xml b/email2/res/values-sw600dp/colors.xml deleted file mode 100644 index 63d594385..000000000 --- a/email2/res/values-sw600dp/colors.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - #00000000 - diff --git a/email2/res/values-sw600dp/dimensions.xml b/email2/res/values-sw600dp/dimensions.xml index 2ce5d05e4..e0b8a2eec 100644 --- a/email2/res/values-sw600dp/dimensions.xml +++ b/email2/res/values-sw600dp/dimensions.xml @@ -16,17 +16,6 @@ - - 64dip - 4dip - 64dip - 16dip - - - -6dip - 16dip @@ -53,14 +42,14 @@ 16dip 64dip - - 16dip - 24dip - 16dip + + 16dip + 64dip + 64dip - - 8dip - 3sp - 4sp + + 3sp + 16dip + 4sp 30sp diff --git a/email2/res/values-sw600dp/styles.xml b/email2/res/values-sw600dp/styles.xml index 37ae1eab7..08c573fff 100644 --- a/email2/res/values-sw600dp/styles.xml +++ b/email2/res/values-sw600dp/styles.xml @@ -57,10 +57,4 @@ @+id/main_content" true - - - diff --git a/email2/res/values-sw800dp-land/dimen.xml b/email2/res/values-sw720dp-land/dimensions.xml similarity index 100% rename from email2/res/values-sw800dp-land/dimen.xml rename to email2/res/values-sw720dp-land/dimensions.xml diff --git a/email2/res/values/bools.xml b/email2/res/values/bools.xml deleted file mode 100644 index 4a6977b07..000000000 --- a/email2/res/values/bools.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - false - - - false - diff --git a/email2/res/values/colors.xml b/email2/res/values/colors.xml index f00f37eaf..a50494161 100644 --- a/email2/res/values/colors.xml +++ b/email2/res/values/colors.xml @@ -14,6 +14,7 @@ limitations under the License. --> + @@ -23,25 +24,11 @@ #CCCCCC - #404040 - #000000 - #303030 #fffff1a8 - #000000 #666666 #aaaaaa - #888888 - - #777777 - #cccccc - - - #ffffff - #eeeeee - - #ff808080 #ff71aea7 @@ -54,23 +41,6 @@ #ff738359 #ff9d50a4 - - #ff999999 - #00ffffff - #fff10000 - - - #ff000000 - #ff666666 - #333333 - #777777 - - #deecfa - #3cb8e6 - #3cb8e6 - - #ffff66 - - - #aaaaaa - + #777777 + #cccccc + \ No newline at end of file diff --git a/email2/res/values/dimensions.xml b/email2/res/values/dimensions.xml index f20bd9fd5..a466dd309 100644 --- a/email2/res/values/dimensions.xml +++ b/email2/res/values/dimensions.xml @@ -25,24 +25,6 @@ 4dip 3dip - 48dip - 48dip - 4dip - - 48dip - - 14sp - 14sp - 14sp - - 16dip - 42sp - 16dip - 18sp - 16dip - - 700dip - 16dip 16dip @@ -61,21 +43,11 @@ 0dip 0dip - - 720dip - 340dip - - 8dip - 16dip - 8dip - 8dip + 0dip 10sp - 3sp - 28sp - 9sp diff --git a/email2/res/values/styles.xml b/email2/res/values/styles.xml index c3f46d516..956a86cff 100644 --- a/email2/res/values/styles.xml +++ b/email2/res/values/styles.xml @@ -45,14 +45,5 @@ ?android:attr/textColorPrimary ?android:attr/textAppearanceSmall - - - - diff --git a/email2/src/com/android/email/activity/UiUtilities.java b/email2/src/com/android/email/activity/UiUtilities.java index c76ed4107..de853d31a 100644 --- a/email2/src/com/android/email/activity/UiUtilities.java +++ b/email2/src/com/android/email/activity/UiUtilities.java @@ -135,17 +135,4 @@ public class UiUtilities { static void setDebugPaneMode(int paneMode) { sDebugForcedPaneMode = paneMode; } - - /** - * @return {@code true} if 2-pane UI should be used. {@code false} otherwise. - */ - public static boolean useTwoPane(Context context) { - if (sDebugForcedPaneMode == 1) { - return false; - } - if (sDebugForcedPaneMode == 2) { - return true; - } - return context.getResources().getBoolean(R.bool.use_two_pane); - } }