New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(android): ProgressIndicator dialog handling #11115
Conversation
- [TIMOB-27104] ProgressIndicator logs "WindowLeaked" exception when hiding dialog and closing window at same time as of 8.0.2 - [TIMOB-27308] Determinant ProgressIndicator ignores "value" property before shown - [TIMOB-27309] Cannot re-show ProgressIndicator dialog if auto-closed by previous window - Removed dialog's handleMessage() related code. No longer needed since JS runs on main UI thread.
Tests:
|
* Please see the LICENSE included with this distribution for details. | ||
*/ | ||
/* eslint-env mocha */ | ||
/* global Titanium */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 🚫 tests/Resources/ti.ui.android.progressindicator.addontest.js line 8 – 'Titanium' is already defined as a built-in global variable. (no-redeclare)
⚠️ tests/Resources/ti.ui.android.progressindicator.addontest.js line 8 – 'Titanium' is defined but never used. (no-unused-vars)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: PASS
FR Passed. The progress indicator works as expected. |
JIRA:
Summary:
ProgressIndicator
logs "WindowLeaked" exception when hiding dialog and closing window at same time as of 8.0.2.ProgressIndicator
ignores "value" property before shown.ProgressIndicator
dialog if auto-closed by previous window.handleMessage()
related code. No longer needed since JS runs on main UI thread.Note:
The status bar
ProgressIndicator
is a dead feature. Google no longer supports it and their Java APIs effectively no-op. I've written up ticket TIMOB-27312 to refactor it in the future. In the meantime, there is no point in testing it. (I've already done some testing on it anyways with this PR and it's no worse.)Test 1:
(Verifies dialog no longer logs exception when window closes.)
Test 2:
(Verifies progress indicator reads "value" property when shown.)
50%
.Test 3:
(Verifies progress dialog can be re-shown after auto-closed.)
Test 4:
(Verifies determinant progress indicator handling.)
0%
to100%
and then closes itself.0%
.100%
.