summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-06-17 12:47:33 +0900
committerHugo Benichi <hugobenichi@google.com>2017-06-19 22:17:27 +0900
commit605b295011be74c786a2eef586d31ccb07160422 (patch)
tree1b4b4c495b7c942a6d5d4aa60448e5dc96939c54 /rs/java/android/renderscript/Program.java
parent31c176d91068934f5b79125afa3b5ce0f44dbe8f (diff)
CaptivePortalLogin correctly unregisters callbacks
The NetworkCallback registered by the CaptivePortalLogin activity in onCreate was unregistered in both onDestroy() and done(). In addition done() can be called concurrently from different places (from the webview, from the captive portal test probe, from the activity menu), resulting in incorrectly unregistering the callback more than once. This patch fixes the lifecycle management of the NetworkCallback registered by the CaptivePortalLogin activity so that it is unregistered once only in onDestroy. In addition the done() method is made robust against multiple calls and becomes a no-op after the first call. This avoids multiple calls to CaptivePortal for the same captive portal. Bug: 62497809 Test: tested manually with captive portal setup in the office Change-Id: I77fbeb55cf91d3b44e91d2fecb800dae40279652
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions