Skip to content

Commit

Permalink
Clearing the layout should be valid ??
Browse files Browse the repository at this point in the history
  • Loading branch information
kcw-grunt committed Jan 30, 2023
1 parent b22742d commit dd93fd9
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package com.breadwallet.presenter.fragments;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ArgbEvaluator;
Expand All @@ -9,7 +10,6 @@
import android.hardware.fingerprint.FingerprintManager;
import android.os.Bundle;
import android.os.Handler;
import androidx.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand All @@ -21,6 +21,8 @@
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.breadwallet.R;
import com.breadwallet.presenter.activities.BreadActivity;
import com.breadwallet.presenter.interfaces.BRAuthCompletion;
Expand All @@ -30,6 +32,8 @@
import com.breadwallet.tools.security.FingerprintUiHelper;
import com.breadwallet.tools.util.Utils;

import timber.log.Timber;

/**
* A dialog which uses fingerprint APIs to authenticate the user, and falls back to password
* authentication if fingerprint is not available.
Expand Down Expand Up @@ -229,8 +233,9 @@ private void animateSignalSlide(final boolean reverse) {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
if (getActivity() != null)
getActivity().getFragmentManager().beginTransaction().remove(FragmentFingerprint.this).commit();
if (getActivity() != null) {
fingerPrintLayout.clearAnimation();
}
}
});

Expand Down

0 comments on commit dd93fd9

Please sign in to comment.