Bug
Problem
When the activity indicator is running, and you press the search button of the mobile the activity indicator stops.
Reproducible steps:
1.Run the code below.
Expected behavior
Customer want to disable the search button when the activity indicator is running, or another solution to solve the problem.
Sample Code:
var win = Ti.UI.createWindow({ navBarHidden: true, layout: 'vertical' });
win.add(Ti.UI.createLabel({ text: '1. Leave this app and "Share" some text.', top: 20 }));
var button = Ti.UI.createButton({ title: '2. Touch me to crash the application.', top: 20 });
button.addEventListener('click', function()
{
var x=Ti.UI.createActivityIndicator(
{
message: '3. This alert should crash the app.'
});
x.show();
setTimeout(function()
{
x.hide();
},6000);
});
win.addEventListener('android:search', function() {
Ti.API.info('You clicked search button')
});
win.add(button);
win.open();
Helpdesk
APP-357876
Adding two more thing. This shows following behavior too 1) when i send the http request to the server it will also stop that request and we are in blank situation. 2) it creates two instance of the application
Tested on a Samsung Galaxy S2 with 2.1GA, issue still exists.
cannot reproduce Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Android Emulator: Android SDK version: 2.2
Closing ticket as the issue cannot be reproduced and due to the above comments.