You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes It does not hide when moving to the next fragment.
if (email.isEmpty()) {
showProgress(); // I defined this function using AVLoadingIndicatorView in BaseActivity
auth.signInWithEmailAndPassword(email, password)
.addOnCompleteListener(getActivity(), task -> {
hideProgress(); // hide the AVLoadingIndicatorView
if (task.isSuccessful()) {
// Sign in success, update UI with the signed-in user's information
moveToSubjectSelectFragment();
} else {
Log.w(TAG, "createUserWithEmail:failure", task.getException());
Toast.makeText(getActivity(), "Login fail", Toast.LENGTH_SHORT).show();
}
});
}
Here is the showProgress(), HideProgress() function in BaseActivity
public void showProgress() {
runOnUiThread(new Runnable() {
@Override
public void run() {
if(activityIndicator != null) activityIndicator.show();
}
});
}
public void HideProgress() {
runOnUiThread(new Runnable() {
@Override
public void run() {
if(activityIndicator != null) activityIndicator.hide();
}
});
}
The text was updated successfully, but these errors were encountered:
Sometimes It does not hide when moving to the next fragment.
Here is the showProgress(), HideProgress() function in BaseActivity
The text was updated successfully, but these errors were encountered: