|
|
@ -1141,8 +1141,8 @@ public class Helper {
|
|
|
|
prompt.authenticate(info.build());
|
|
|
|
prompt.authenticate(info.build());
|
|
|
|
|
|
|
|
|
|
|
|
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
|
|
|
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
|
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
|
|
|
public void onPause() {
|
|
|
|
public void onDestroy() {
|
|
|
|
prompt.cancelAuthentication();
|
|
|
|
prompt.cancelAuthentication();
|
|
|
|
handler.post(cancelled);
|
|
|
|
handler.post(cancelled);
|
|
|
|
owner.getLifecycle().removeObserver(this);
|
|
|
|
owner.getLifecycle().removeObserver(this);
|
|
|
|