Move system folder string resources to emailcommon.
Also rename emailcommon2 to emailcommon.
This is a multi-project submit with
I6c6eec4f1bcf2abd54c1ed05da1add8d894ee403 and
I5746c0353783f9b29d52d6540472588c6542a6a2
Change-Id: I4a071a07c3e33aaa4ea404eb66a8db1eabc9ef0e
diff --git a/Android.mk b/Android.mk
index 38341f0..d11f8fa 100644
--- a/Android.mk
+++ b/Android.mk
@@ -20,16 +20,19 @@
#
LOCAL_MODULE_TAGS := optional
-res_dir := res build/res
+# Include res dir from emailcommon
+emailcommon_dir := ../Email/emailcommon
+res_dir := res $(emailcommon_dir)/res build/res
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))
LOCAL_AAPT_FLAGS := --auto-add-overlay
+LOCAL_AAPT_FLAGS += --extra-packages com.android.emailcommon
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SRC_FILES += $(call all-java-files-under, build/src)
-LOCAL_STATIC_JAVA_LIBRARIES := android-common com.android.emailcommon2 com.android.emailsync
+LOCAL_STATIC_JAVA_LIBRARIES := android-common com.android.emailcommon com.android.emailsync
LOCAL_STATIC_JAVA_LIBRARIES += calendar-common
LOCAL_PACKAGE_NAME := Exchange2