Reverse an attach(), restoring the previous context and exiting the current scope. This context should be the same context that was previously #attach attached. The provided replacement should be what was returned by the same #attach attach() call. If an {@code attach()
(Context toAttach)
| 446 | * compromise this error-detecting mechanism. |
| 447 | */ |
| 448 | public void detach(Context toAttach) { |
| 449 | checkNotNull(toAttach, "toAttach"); |
| 450 | storage().detach(this, toAttach); |
| 451 | } |
| 452 | |
| 453 | // Visible for testing |
| 454 | boolean isCurrent() { |