adobe / aepsdk-assurance-android

Adobe Experience Platform Assurance SDK
Apache License 2.0
2 stars 4 forks source link

Terminate status jobs when quick connect is cancelled #110

Closed prudrabhat closed 4 months ago

prudrabhat commented 5 months ago

Description

Currently, the device status check job is not being cancelled when the 'Cancel' button is clicked before the QuickConnect status check succeeds. This was a miss when porting from 2.x. While this is a not usual case, it is still possible to Cancel the flow when waiting.

As a solution invoke QuickConnectManager.cancel() when Cancel is clicked.

Related Issue

Motivation and Context

Currently, the device status check job is not being cancelled when the 'Cancel' button is clicked before the QuickConnect status check succeeds. This was a miss when porting from 2.x. While this is a not a usual case, it is still possible to Cancel the flow when waiting. As a solution invoke QuickConnectManager.cancel() when Cancel is clicked.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: