Details
-
Type:
Bug
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: Release 8.1.1
-
Fix Version/s: Release 9.0.3
-
Component/s: Android
-
Environment:
Operating System
Name = Mac OS X
Version = 10.14.5
Architecture = 64bit- CPUs = 12
Memory = 17179869184
Node.js
Node.js Version = 8.16.0
npm Version = 6.4.1
Titanium CLI
CLI Version = 5.2.1
Titanium SDK
SDK Version = 8.2.0.GA
SDK Path = /Users/cstefaniga/Library/Application Support/Titanium/mobilesdk/osx/8.2.0.GA
Target Platform = android
Operating System Name = Mac OS X Version = 10.14.5 Architecture = 64bit CPUs = 12 Memory = 17179869184 Node.js Node.js Version = 8.16.0 npm Version = 6.4.1 Titanium CLI CLI Version = 5.2.1 Titanium SDK SDK Version = 8.2.0.GA SDK Path = /Users/cstefaniga/Library/Application Support/Titanium/mobilesdk/osx/8.2.0.GA Target Platform = android - CPUs = 12
-
Story Points:3
-
Sprint:2020 Sprint 3, 2020 Sprint 9
Description
Summary:
Hiding and showing a progress indicator dialog like the below prevents the dialog from being hidden ever again.
// Hide/show dialog back-to-back.
|
progressIndicator.hide();
|
progressIndicator.show();
|
|
// Uh-oh. Can never hide dialog ever again now. |
Steps to reproduce:
- Build and run the below code on Android.
- Tap on the button.
- Notice the progress dialog never closes. (Supposed to close in 5 seconds.)
var self = Ti.UI.createWindow({ |
backgroundColor:'#ffffff', |
navBarHidden:true, |
exitOnClose:true |
});
|
|
var button = Ti.UI.createButton({ |
title: 'Show Progress Dialog' |
});
|
|
var progressIndicator = Ti.UI.Android.createProgressIndicator({ |
message: 'Loading...', |
location: Ti.UI.Android.PROGRESS_INDICATOR_DIALOG,
|
cancelable: true, |
});
|
|
button.addEventListener('click', function (e) { |
progressIndicator.show();
|
|
setTimeout(function(){ |
progressIndicator.hide();
|
progressIndicator.show();
|
}, 3000);
|
|
setTimeout(function(){ |
progressIndicator.hide();
|
}, 5000);
|
});
|
|
self.add(button);
|
self.open();
|