diff --git a/java/Android.mk b/java/Android.mk index 0d5a93db0..4bb8986ee 100755 --- a/java/Android.mk +++ b/java/Android.mk @@ -14,20 +14,9 @@ LOCAL_JNI_SHARED_LIBRARIES := libjni_latinime LOCAL_STATIC_JAVA_LIBRARIES := android-common #LOCAL_AAPT_FLAGS := -0 .dict -# The following flag is required because we use a different package name -# com.google.android.inputmethod.latin than Java package name -# com.android.inputmethod.latin -LOCAL_AAPT_FLAGS := --custom-package com.android.inputmethod.latin -LOCAL_SDK_VERSION := 8 +LOCAL_SDK_VERSION := current LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags -# Define LOCAL_DICTIONARY_RESOURCE_DIR in order to overlay dictionaries. -# The overlay dictionary resource directory should have dictionary files such -# as raw-en/main.dict, raw-es/main.dict per locale. -ifneq ($(strip $(LOCAL_DICTIONARY_RESOURCE_DIR)),) -LOCAL_RESOURCE_DIR := $(LOCAL_DICTIONARY_RESOURCE_DIR) $(LOCAL_PATH)/res -endif - include $(BUILD_PACKAGE) diff --git a/java/AndroidManifest.xml b/java/AndroidManifest.xml index f87ce013b..642c717d3 100755 --- a/java/AndroidManifest.xml +++ b/java/AndroidManifest.xml @@ -1,7 +1,5 @@ - - + package="com.android.inputmethod.latin"> @@ -10,10 +8,10 @@ - @@ -22,13 +20,13 @@ - + - diff --git a/java/res/layout/input_basic.xml b/java/res/layout/input_basic.xml index ffa59543b..168eba691 100755 --- a/java/res/layout/input_basic.xml +++ b/java/res/layout/input_basic.xml @@ -20,7 +20,7 @@ dictionaries = new ArrayList(); @@ -443,7 +444,7 @@ public class LatinIME extends InputMethodService SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); mQuickFixes = sp.getBoolean(PREF_QUICK_FIXES, true); - int[] dictionaries = getDictionary(orig, this.getPackageName()); + int[] dictionaries = getDictionary(orig); mSuggest = new Suggest(this, dictionaries); updateAutoTextEnabled(saveLocale); if (mUserDictionary != null) mUserDictionary.close(); diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml index 66cecee8b..210e81489 100644 --- a/tests/AndroidManifest.xml +++ b/tests/AndroidManifest.xml @@ -27,7 +27,7 @@