[TIMOB-15578] Android: Map module crashes when trying to exit the app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-25T21:34:04.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 22, 2013 Sprint 22 API, Release 3.2.0 |
Components | n/a |
Labels | n/a |
Reporter | Hieu Pham |
Assignee | Hieu Pham |
Created | 2013-10-25T01:47:34.000+0000 |
Updated | 2013-11-14T09:22:49.000+0000 |
Description
Build map v2 against latest master, run this code on latest master:
var MapModule = require("ti.map");
var win = Titanium.UI.createWindow({
backgroundColor : "white"
});
var mapContainer = Ti.UI.createView({
id : 'mapContainer',
top : "50%",
width : "95%",
bottom : "15dip",
visible : true,
layout : "vertical",
backgroundImage : "/images/map_bg.png"
});
win.add(mapContainer);
var mapview = MapModule.createView({
mapType : MapModule.NORMAL_TYPE,
region : {
latitude : 33.74511,
longitude : -84.38993,
latitudeDelta : 0.01,
longitudeDelta : 0.01
},
animate : true,
regionFit : true,
userLocation : true,
top : "5dip",
bottom : "10dp",
width : "98%",
});
mapContainer.add(mapview);
win.open();
1. hit the back button, observe crash
master PR: https://github.com/appcelerator/titanium_mobile/pull/4854
Verified with: Appcelerator Studio: 3.2.0.201311122338 SDK:3.2.0.v20131113183932 alloy: 1.3.0 acs: 1.0.7 npm: 1.3.2 titanium: 3.2.0 titanium-code-processor: 1.1.0 Xcode:5.0.2 Device: Google Nexus7(v4.3) OS: Mac OSX 10.9 App not crashing on clicking back button. Hence Closing as fixed and verified.