[TIMOB-11789] Android: Ti.Facebook.authorize() causes app crash when a textfield added to the same parent view is accessed.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-18T08:35:14.000+0000 |
Affected Version/s | Release 2.1.3, Release 2.1.4 |
Fix Version/s | Release 3.0.2 |
Components | Android |
Labels | parity |
Reporter | Amuktha Akkinepally |
Assignee | jithinpv |
Created | 2012-11-15T21:31:17.000+0000 |
Updated | 2017-03-21T21:40:05.000+0000 |
Description
When a textField and a button with Ti.Facebook.authorize() event are added to a window or view, the Ti.Facebook.authorize() causes an app crash if the textfield is typed in. It works fine on iOS.
Steps to Reproduce:
1. Load the below app.js 2. Click on the 'open FB' button(it opens fine) 3. Now tap on the textField and then type some letters. 4. Click on 'open FB' button. The app crashes.app.js
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
Titanium.Facebook.appid = "387897884561128";
Titanium.Facebook.permissions = ['publish_stream', 'read_stream'];
var input = Ti.UI.createTextField({
autocorrect : true,
backgroundColor : 'pink',
color : 'gray',
top : '10dp',
width: 100,
borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED
});
win.add(input);
var btnFb = Ti.UI.createButton({
title : 'open FB',
top : '80dp'
});
win.add(btnFb);
btnFb.addEventListener('click', function() {
Ti.Facebook.authorize();
});
win.open();
Attachments
File | Date | Size |
---|---|---|
crash log.rtf | 2012-11-15T22:38:12.000+0000 | 4941 |
Issue does not reproduces 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
Closing ticket as the issue cannot be reproduced and due to the above comments.