Set Developer Options -> Background Process Limit -> No background processes
Open up sample app and click "Other Activity"
Use the task switcher to switch to another app, killing the process of the sample app. This simulates a low-memory condition.
Switch back to the sample app and click "OK"
Expected Result:
Status: Ok
Actual Result:
No status is reported
The rx subscription is destroyed on process death and there is no code to re-attach it when the process is recreated as it's only set up in the click listener. Furthermore, the implementation uses a PublishSubject which will drop the delivered result on the floor as there is no listeners attached when resuming.
Steps to reproduce:
Expected Result: Status: Ok Actual Result: No status is reported
The rx subscription is destroyed on process death and there is no code to re-attach it when the process is recreated as it's only set up in the click listener. Furthermore, the implementation uses a PublishSubject which will drop the delivered result on the floor as there is no listeners attached when resuming.