Skip to content
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)(8_1_X): ProgressIndicator dialog handling #11142

Merged
merged 7 commits into from Aug 22, 2019

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.
@jquick-axway jquick-axway added this to the 8.1.1 milestone Aug 13, 2019
@build build requested a review from a team August 13, 2019 01:06
* Please see the LICENSE included with this distribution for details.
*/
/* eslint-env mocha */
/* global Titanium */
Copy link
Contributor

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 defined but never used. (no-unused-vars)

@build
Copy link
Contributor

build commented Aug 13, 2019

Messages
📖

💾 Here's the generated SDK zipfile.

📖

✅ All tests are passing
Nice one! All 3738 tests are passing.
(There are 470 tests skipped)

Generated by 🚫 dangerJS against f0f5d36

int thePos = (value - min) * incrementFactor;

handler.obtainMessage(MSG_PROGRESS, thePos, -1).sendToTarget();
int progressValue = (TiConvert.toInt(newValue) - this.min) * this.incrementFactor;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set default to zero?

TiConvert.toInt(newValue, 0)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'll do that. Especially since we're doing this when opening the dialog too.

Copy link
Contributor

@garymathews garymathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR: PASS

@ssekhri
Copy link

ssekhri commented Aug 14, 2019

FR Passed. The progress indicator works as expected.
The value set before the show() is shown on the progress indicator. Also the progress dialog is successfully re-shown and no error is shown in logs.
Verified on:
Mac OS 10.14.6
Ti SDK: 8.1.1.v20190814114347
Appc CLI: 7.1.0
Node: 10.5.0
JDK: 10.0.2
Xcode: 10.3
Studio: 5.1.3.201907112159

@ssekhri ssekhri merged commit 26017cb into tidev:8_1_X Aug 22, 2019
rlustemberg added a commit to inzdr/titanium_mobile that referenced this pull request Sep 20, 2019
* 8_1_X:
  chore(release): bump version
  chore(8_1_X): update aps-analytics (tidev#11179)
  fix(ios): console and tiapi multiple parameter log (tidev#11162)
  fix(ios): use device build as base for universal module framework (tidev#11120)
  fix(ios)(8_1_X): properly load watchsession module (tidev#11174)
  fix(ios): remove invalid architecture from framework for adhoc build (tidev#11087)
  refactor(android)(8_1_X): ProgressIndicator dialog handling (tidev#11142)
  refactor(android): consolidate incremental build fixes back into task (tidev#10997)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants