Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25735] Android: Replace Activity.isDestroyed() with Android 4.1 compatible alternative

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2018-01-30T23:43:20.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.0.2
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2018-01-30T18:47:31.000+0000
Updated2018-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

Comments

  1. Gary Mathews 2018-01-30

    master: https://github.com/appcelerator/titanium_mobile/pull/9781 7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9782
  2. Lokesh Choudhary 2018-01-30

    FR Passed & PR's merged for both master & backport.
  3. Lokesh Choudhary 2018-01-31

    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

JSON Source