[TIMOB-10415] Android: Location property not set for Ti.Android.Calendar.Event by createEvent method
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-15T20:49:16.000+0000 |
Affected Version/s | Release 2.0.1, Release 3.1.0 |
Fix Version/s | 2013 Sprint 08 API, 2013 Sprint 08, Release 3.1.1, Release 3.2.0 |
Components | Android |
Labels | api, module_AndroidProperties, qe-testadded |
Reporter | Joe Falcone |
Assignee | Ping Wang |
Created | 2012-05-24T21:41:50.000+0000 |
Updated | 2014-03-05T02:07:31.000+0000 |
Description
calendar.createEvent does not create 'location' property - it is ignored.
// Create the event
var eventBegins = new Date(2010, 11, 26, 12, 0, 0);
var eventEnds = new Date(2010, 11, 26, 14, 0, 0);
var details = {
title: 'Do some stuff',
description: "I'm going to do some stuff at this time.",
location : "At this Place",
begin: eventBegins,
end: eventEnds
};
var event = calendar.createEvent(details);
Ti.API.info (event.getLocation()); -- prints null
See http://developer.appcelerator.com/question/131770/location-property-ignored-in-tiandroidcalendarcreateevent#comment-127907
Bug is in android / calendar / EventProxy.java
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4 jithinpv
Test case:
PR: https://github.com/appcelerator/titanium_mobile/pull/4141
Using test code, i verified fi with: Appcelerator Studio, build: 3.1.1.201305312408 SDK, build:3.1.1.v20130530204550 Device: NExus 7 Android version: 4.2 Actual result:
Anvil test case added. https://github.com/appcelerator/titanium_mobile/pull/4944