OSDN Git Service

Fix leaked windows exception in WifiDialogActivity
authortmfang <tmfang@google.com>
Fri, 27 Jul 2018 10:41:23 +0000 (18:41 +0800)
committertmfang <tmfang@google.com>
Mon, 30 Jul 2018 10:52:02 +0000 (18:52 +0800)
commit656e94cc06fc7557fb3f1e53a5f27fa46f80034b
tree419f3abe483a87ad77402e810164c26aea1980bb
parent64771b538226fa71ac5607f1e2fa701f6ec0161a
Fix leaked windows exception in WifiDialogActivity

WifiDialog was created by WifiDialogActivity.
If activity was destroyed suddenly, WifiDialog can't dismiss itself.

So, we need to dismiss dialog, when activity was destroyed.

Test: robo and manual test
Bug: 111841375
Change-Id: I8aaf1c78e72144bf7c9cbc2392bce30e715d86e9
src/com/android/settings/wifi/WifiDialogActivity.java