summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-05-20 06:41:03 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-05-20 06:41:03 -0700
commitd9435bcecc820c8715d8b6b920fd43042418a1e9 (patch)
tree0e1727820b6a6a4cfecfb9be26547dd08b8bb1f0 /core/java
parentc851ea5672f6e042c2e89b2a2ce4a2467e1fcd2a (diff)
parentb4788fdbfdda97bd9cfd0e483276934114d9c438 (diff)
downloadframeworks_base-d9435bcecc820c8715d8b6b920fd43042418a1e9.zip
frameworks_base-d9435bcecc820c8715d8b6b920fd43042418a1e9.tar.gz
frameworks_base-d9435bcecc820c8715d8b6b920fd43042418a1e9.tar.bz2
am b4788fdb: Do not merge. Backport two fixes for InputMethethodFramework
* commit 'b4788fdbfdda97bd9cfd0e483276934114d9c438': Do not merge. Backport two fixes for InputMethethodFramework
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/inputmethod/InputMethodSubtype.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodSubtype.java b/core/java/android/view/inputmethod/InputMethodSubtype.java
index 25f2229..807f6ce 100644
--- a/core/java/android/view/inputmethod/InputMethodSubtype.java
+++ b/core/java/android/view/inputmethod/InputMethodSubtype.java
@@ -60,8 +60,7 @@ public final class InputMethodSubtype implements Parcelable {
mSubtypeLocale = locale != null ? locale : "";
mSubtypeMode = mode != null ? mode : "";
mSubtypeExtraValue = extraValue != null ? extraValue : "";
- mSubtypeHashCode = hashCodeInternal(mSubtypeNameResId, mSubtypeIconResId, mSubtypeLocale,
- mSubtypeMode, mSubtypeExtraValue);
+ mSubtypeHashCode = hashCodeInternal(mSubtypeLocale, mSubtypeMode, mSubtypeExtraValue);
}
InputMethodSubtype(Parcel source) {
@@ -74,8 +73,7 @@ public final class InputMethodSubtype implements Parcelable {
mSubtypeMode = s != null ? s : "";
s = source.readString();
mSubtypeExtraValue = s != null ? s : "";
- mSubtypeHashCode = hashCodeInternal(mSubtypeNameResId, mSubtypeIconResId, mSubtypeLocale,
- mSubtypeMode, mSubtypeExtraValue);
+ mSubtypeHashCode = hashCodeInternal(mSubtypeLocale, mSubtypeMode, mSubtypeExtraValue);
}
/**
@@ -195,9 +193,8 @@ public final class InputMethodSubtype implements Parcelable {
}
};
- private static int hashCodeInternal(int nameResId, int iconResId, String locale,
- String mode, String extraValue) {
- return Arrays.hashCode(new Object[] {nameResId, iconResId, locale, mode, extraValue});
+ private static int hashCodeInternal(String locale, String mode, String extraValue) {
+ return Arrays.hashCode(new Object[] {locale, mode, extraValue});
}
/**