private void TryCancel(IdentifyListener identifyListener) { try { _spassFingerprint.CancelIdentify(); } catch (Exception ex) { // #75: should be fixed with the reordering of the base.OnPause() in the dialog, but // to avoid crashes in other cases, we ignore exceptions here and return cancelled instead Log.Warn(nameof(SamsungFingerprintImplementation), ex); identifyListener.CancelManually(); } }