[TIMOB-25735] Android: Replace Activity.isDestroyed() with Android 4.1 compatible alternative
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-01-30T23:43:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.0.2 |
Components | Android |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2018-01-30T18:47:31.000+0000 |
Updated | 2018-01-31T18:47:00.000+0000 |
Description
The fix for TIMOB-25656 made use of
Activity.isDestroyed()
which is an Android 4.2+ method. We need to replace it with an alternative.
*TEST CASE*
- Titanium Application should launch on 4.1 device
master: https://github.com/appcelerator/titanium_mobile/pull/9781 7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9782
FR Passed & PR's merged for both master & backport.
Verified the fix with SDK's 7.1.0.v20180130154803 & 7.0.2.v20180130154740. Closing. Studio Ver: 5.0.0.201712081732 OS Ver: 10.13.2 Xcode Ver: Xcode 9.2 Appc NPM: 4.2.11 Appc CLI: 7.0.2-master.6 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.10.12 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 1.8.0_101 Devices: ⇨ google Pixel --- Android 7.1.1 ⇨ google Nexus 5 --- Android 6.0.1 Emulator: Android 4.1