summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-06-17 12:47:33 +0900
committerHugo Benichi <hugobenichi@google.com>2017-07-11 14:49:27 +0900
commita173a63a6cf9c94c511d14d75648f55525ce7006 (patch)
tree15988e926033bfa29fd1ee0adb917698c1956c45 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentf7f48b17cbdfffa130cdb8991a9c2b09f7659664 (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: Ib5da2bd9276d4bd202f1045315b3849f67a15078 (cherry pick from commit 605b295011be74c786a2eef586d31ccb07160422)
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions