OSDN Git Service

proper cleanup onDestroy
authorfionaxu <fionaxu@google.com>
Sat, 22 Jul 2017 01:02:30 +0000 (18:02 -0700)
committerfionaxu <fionaxu@google.com>
Mon, 24 Jul 2017 22:43:27 +0000 (15:43 -0700)
commitf62e4cc565330a42b669b0844ca62d2fd0a44491
tree832044e01a9d7c41b0a1d5526692e13a7faf1c4c
parentdc7b2bc5e3b1d00f02b5c9a9dc8fde2a3c459bff
proper cleanup onDestroy

1. interrupt the sleeping testing thread onDestory to avoid
any thread keep running after onDestory.
2. add check of isFinishing() or isDestoryed() when the
testing thread wakeup.
3. detory the webview onDestory since there're chances that
some callbacks in WebChromeClient will try to open dialogs
while the container activity has been destroyed.

Bug: 63819703
Test: Manual test
Change-Id: Ida62d9d8e97e8c9f905ce2feab4ea265575baee8
packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/CaptivePortalLoginActivity.java