Revert the open-source LatinIME package name -
from com.google.android.inputmethod.latin to com.android.inputmethod.latin Related change: https://android-git.corp.google.com/g/60862 bug: 2786392 Change-Id: Ib7c6cfe61db19ef50c401a01497eef5f1f5e239emain
parent
0b0a686281
commit
648dcf55a3
|
@ -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)
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.google.android.inputmethod.latin">
|
||||
|
||||
<original-package android:name="com.android.inputmethod.latin" />
|
||||
package="com.android.inputmethod.latin">
|
||||
|
||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||
<uses-permission android:name="android.permission.READ_USER_DICTIONARY" />
|
||||
|
@ -10,10 +8,10 @@
|
|||
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
||||
|
||||
<application android:label="@string/english_ime_name"
|
||||
android:backupAgent="com.android.inputmethod.latin.LatinIMEBackupAgent"
|
||||
android:backupAgent="LatinIMEBackupAgent"
|
||||
android:killAfterRestore="false">
|
||||
|
||||
<service android:name="com.android.inputmethod.latin.LatinIME"
|
||||
<service android:name="LatinIME"
|
||||
android:label="@string/english_ime_name"
|
||||
android:permission="android.permission.BIND_INPUT_METHOD">
|
||||
<intent-filter>
|
||||
|
@ -22,13 +20,13 @@
|
|||
<meta-data android:name="android.view.im" android:resource="@xml/method" />
|
||||
</service>
|
||||
|
||||
<activity android:name="com.android.inputmethod.latin.LatinIMESettings" android:label="@string/english_ime_settings">
|
||||
<activity android:name="LatinIMESettings" android:label="@string/english_ime_settings">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity android:name="com.android.inputmethod.latin.InputLanguageSelection"
|
||||
<activity android:name="InputLanguageSelection"
|
||||
android:label="@string/language_selection_title">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
<com.android.inputmethod.latin.LatinKeyboardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.google.android.inputmethod.latin"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
android:id="@+id/LatinkeyboardBaseView"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
<com.android.inputmethod.latin.LatinKeyboardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.google.android.inputmethod.latin"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
|
||||
android:id="@+id/LatinkeyboardBaseView"
|
||||
android:layout_alignParentBottom="true"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
<com.android.inputmethod.latin.LatinKeyboardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.google.android.inputmethod.latin"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
android:id="@+id/LatinkeyboardBaseView"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
<com.android.inputmethod.latin.LatinKeyboardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.google.android.inputmethod.latin"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
android:id="@+id/LatinkeyboardBaseView"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
android:background="@drawable/keyboard_popup_panel_background"
|
||||
>
|
||||
<com.android.inputmethod.latin.LatinKeyboardBaseView
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.google.android.inputmethod.latin"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
android:id="@+id/LatinKeyboardBaseView"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
<com.android.inputmethod.latin.LatinKeyboardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.google.android.inputmethod.latin"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
android:id="@android:id/keyboardView"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
android:background="@drawable/keyboard_popup_panel_background"
|
||||
>
|
||||
<com.android.inputmethod.latin.LatinKeyboardBaseView
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.google.android.inputmethod.latin"
|
||||
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
|
||||
android:id="@+id/LatinKeyboardBaseView"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -100,7 +100,7 @@ public class InputLanguageSelection extends PreferenceActivity {
|
|||
conf.locale = locale;
|
||||
res.updateConfiguration(conf, res.getDisplayMetrics());
|
||||
|
||||
int[] dictionaries = LatinIME.getDictionary(res, this.getPackageName());
|
||||
int[] dictionaries = LatinIME.getDictionary(res);
|
||||
BinaryDictionary bd = new BinaryDictionary(this, dictionaries, Suggest.DIC_MAIN);
|
||||
|
||||
// Is the dictionary larger than a placeholder? Arbitrarily chose a lower limit of
|
||||
|
|
|
@ -394,7 +394,8 @@ public class LatinIME extends InputMethodService
|
|||
* Loads a dictionary or multiple separated dictionary
|
||||
* @return returns array of dictionary resource ids
|
||||
*/
|
||||
static int[] getDictionary(Resources res, String packageName) {
|
||||
static int[] getDictionary(Resources res) {
|
||||
String packageName = LatinIME.class.getPackage().getName();
|
||||
XmlResourceParser xrp = res.getXml(R.xml.dictionary);
|
||||
int dictionaryCount = 0;
|
||||
ArrayList<Integer> dictionaries = new ArrayList<Integer>();
|
||||
|
@ -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();
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</application>
|
||||
|
||||
<instrumentation android:name="android.test.InstrumentationTestRunner"
|
||||
android:targetPackage="com.google.android.inputmethod.latin"
|
||||
android:targetPackage="com.android.inputmethod.latin"
|
||||
android:label="LatinIME tests">
|
||||
</instrumentation>
|
||||
</manifest>
|
||||
|
|
Loading…
Reference in New Issue