summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-06 13:48:11 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-06 13:48:11 -0400
commitccc214b21edaaddf46960388ec4d3e3ca89a01ae (patch)
treee8f83a99bf9dea5ed923e30c10ea92712205f1b1 /core
parent9c3c276afa7e2485e1a9f47e29ada8cb61b7b07c (diff)
parent0dd32c1b27947dc772cebd1b3229c796746150ef (diff)
downloadframeworks_base-ccc214b21edaaddf46960388ec4d3e3ca89a01ae.zip
frameworks_base-ccc214b21edaaddf46960388ec4d3e3ca89a01ae.tar.gz
frameworks_base-ccc214b21edaaddf46960388ec4d3e3ca89a01ae.tar.bz2
Merge change I6a0b14bd into eclair
* changes: Make VCardComposer create the instance for mHandlerList.
Diffstat (limited to 'core')
-rw-r--r--core/java/android/pim/vcard/VCardComposer.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/java/android/pim/vcard/VCardComposer.java b/core/java/android/pim/vcard/VCardComposer.java
index 7b75f4a..c4711f8 100644
--- a/core/java/android/pim/vcard/VCardComposer.java
+++ b/core/java/android/pim/vcard/VCardComposer.java
@@ -294,7 +294,7 @@ public class VCardComposer {
private final String mCharsetString;
private final String mVCardAttributeCharset;
private boolean mTerminateIsCalled;
- private List<OneEntryHandler> mHandlerList;
+ final private List<OneEntryHandler> mHandlerList;
private String mErrorReason = NO_ERROR;
@@ -371,6 +371,7 @@ public class VCardComposer {
mUsesUtf8 = VCardConfig.usesUtf8(vcardType);
mUsesShiftJis = VCardConfig.usesShiftJis(vcardType);
mUsesQPToPrimaryProperties = VCardConfig.usesQPToPrimaryProperties(vcardType);
+ mHandlerList = new ArrayList<OneEntryHandler>();
if (mIsDoCoMo) {
mCharsetString = CharsetUtils.charsetForVendor(SHIFT_JIS, "docomo").name();
@@ -420,9 +421,6 @@ public class VCardComposer {
* Must call before {{@link #init()}.
*/
public void addHandler(OneEntryHandler handler) {
- if (mHandlerList == null) {
- mHandlerList = new ArrayList<OneEntryHandler>();
- }
mHandlerList.add(handler);
}