Commit b453d3bf authored by Adam Langley's avatar Adam Langley Committed by Commit Bot

webauthn: shutdown caBLEv2 when Activity stopped.

onDestroy is called some time after an Activity is dismissed (i.e. "stopped")
in Android terms. But I think caBLE operations should be suspended immediately
when the Activity is dismissed.

BUG=1002262

Change-Id: Idcc09daa17cd2ad691bd26a24c3f4af1ea1a1a6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2477518Reviewed-by: default avatarMartin Kreichgauer <martinkr@google.com>
Commit-Queue: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817979}
parent 547bc1e3
...@@ -173,8 +173,8 @@ public class CableAuthenticatorUI extends Fragment ...@@ -173,8 +173,8 @@ public class CableAuthenticatorUI extends Fragment
} }
@Override @Override
public void onDestroy() { public void onStop() {
super.onDestroy(); super.onStop();
mAuthenticator.close(); mAuthenticator.close();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment