I am trying to change pin in the Settings screen. But I am not able to close the dialogue after changing the pin.
ActionLockingHelper.unlockIfRequired(mContext, new UnlockDialogBuilder.UnlockEventListener(){
public void onCanceled(){ } // Dialog was closed without entry
public void onUnlockFailed(String reason){ } // Not called with default Dialog, instead is handled internally
public void onUnlockSuccessful(){
new CreateLockDialogBuilder(mContext,
new CreateLockDialogBuilder.LockCreationListener(){
public void onLockCanceled(){ } // Dialog was closed without entry
public void onLockSuccessful(){
ActionLockingHelper.unlockIfRequired(mContext, new UnlockDialogBuilder.UnlockEventListener(){
public void onCanceled(){ } // Dialog was closed without entry
public void onUnlockFailed(String reason){ } // Not called with default Dialog, instead is handled internally
public void onUnlockSuccessful(){
// Want to close the dialog here
}
});
}
})
.show();
}
});
I am trying to change pin in the Settings screen. But I am not able to close the dialogue after changing the pin.
ActionLockingHelper.unlockIfRequired(mContext, new UnlockDialogBuilder.UnlockEventListener(){ public void onCanceled(){ } // Dialog was closed without entry public void onUnlockFailed(String reason){ } // Not called with default Dialog, instead is handled internally public void onUnlockSuccessful(){ new CreateLockDialogBuilder(mContext, new CreateLockDialogBuilder.LockCreationListener(){ public void onLockCanceled(){ } // Dialog was closed without entry public void onLockSuccessful(){ ActionLockingHelper.unlockIfRequired(mContext, new UnlockDialogBuilder.UnlockEventListener(){ public void onCanceled(){ } // Dialog was closed without entry public void onUnlockFailed(String reason){ } // Not called with default Dialog, instead is handled internally public void onUnlockSuccessful(){ // Want to close the dialog here } }); } }) .show(); } });