aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordlyongemallo <dlyongemallo@users.noreply.github.com>2014-10-22 15:44:03 +0200
committerdlyongemallo <dlyongemallo@users.noreply.github.com>2014-10-22 15:44:03 +0200
commit1548a16dda24f9f3fe5253314569ed346889f12c (patch)
tree7edc6bb167b9c4ebae95a2776897862306792d6a
parent1df34da8a373f650d387331788668d195008cde8 (diff)
parent9d2df21c48b5d57433a91de9cb6447cce307dd69 (diff)
downloadsrc-1548a16dda24f9f3fe5253314569ed346889f12c.tar.gz
Merge pull request #32 from lararennie/label_fixes
Removing unnecessary two-step assignation of mores in ClientData.java
-rw-r--r--java/src/com/android/i18n/addressinput/ClientData.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/java/src/com/android/i18n/addressinput/ClientData.java b/java/src/com/android/i18n/addressinput/ClientData.java
index 72be34f..f0b2fc0 100644
--- a/java/src/com/android/i18n/addressinput/ClientData.java
+++ b/java/src/com/android/i18n/addressinput/ClientData.java
@@ -264,11 +264,9 @@ public class ClientData implements DataSource {
if (map.containsKey(subMores)) {
// This key could have sub keys.
- String[] mores = {};
+ String[] mores = map.get(subMores).split("~");
String[] keys = {};
- mores = map.get(subMores).split("~");
-
if (map.containsKey(subKeys)) {
keys = map.get(subKeys).split("~");
}