am ccc214b2: Merge change I6a0b14bd into eclair
Merge commit 'ccc214b21edaaddf46960388ec4d3e3ca89a01ae' into eclair-mr2 * commit 'ccc214b21edaaddf46960388ec4d3e3ca89a01ae': Make VCardComposer create the instance for mHandlerList.
This commit is contained in:
@@ -294,7 +294,7 @@ public class VCardComposer {
|
|||||||
private final String mCharsetString;
|
private final String mCharsetString;
|
||||||
private final String mVCardAttributeCharset;
|
private final String mVCardAttributeCharset;
|
||||||
private boolean mTerminateIsCalled;
|
private boolean mTerminateIsCalled;
|
||||||
private List<OneEntryHandler> mHandlerList;
|
final private List<OneEntryHandler> mHandlerList;
|
||||||
|
|
||||||
private String mErrorReason = NO_ERROR;
|
private String mErrorReason = NO_ERROR;
|
||||||
|
|
||||||
@@ -371,6 +371,7 @@ public class VCardComposer {
|
|||||||
mUsesUtf8 = VCardConfig.usesUtf8(vcardType);
|
mUsesUtf8 = VCardConfig.usesUtf8(vcardType);
|
||||||
mUsesShiftJis = VCardConfig.usesShiftJis(vcardType);
|
mUsesShiftJis = VCardConfig.usesShiftJis(vcardType);
|
||||||
mUsesQPToPrimaryProperties = VCardConfig.usesQPToPrimaryProperties(vcardType);
|
mUsesQPToPrimaryProperties = VCardConfig.usesQPToPrimaryProperties(vcardType);
|
||||||
|
mHandlerList = new ArrayList<OneEntryHandler>();
|
||||||
|
|
||||||
if (mIsDoCoMo) {
|
if (mIsDoCoMo) {
|
||||||
mCharsetString = CharsetUtils.charsetForVendor(SHIFT_JIS, "docomo").name();
|
mCharsetString = CharsetUtils.charsetForVendor(SHIFT_JIS, "docomo").name();
|
||||||
@@ -420,9 +421,6 @@ public class VCardComposer {
|
|||||||
* Must call before {{@link #init()}.
|
* Must call before {{@link #init()}.
|
||||||
*/
|
*/
|
||||||
public void addHandler(OneEntryHandler handler) {
|
public void addHandler(OneEntryHandler handler) {
|
||||||
if (mHandlerList == null) {
|
|
||||||
mHandlerList = new ArrayList<OneEntryHandler>();
|
|
||||||
}
|
|
||||||
mHandlerList.add(handler);
|
mHandlerList.add(handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user