Rabbit-R1/android (non root)/java/sources/tech/rabbit/r1launcher/settings/security/ChangePasscodeFragment.java
2024-05-21 17:08:36 -04:00

1456 lines
82 KiB
Java

package tech.rabbit.r1launcher.settings.security;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.os.Bundle;
import android.os.SystemClock;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.core.app.NotificationCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.internal.Intrinsics;
import tech.rabbit.r1launcher.R;
import tech.rabbit.r1launcher.initstep.utils.Constants;
import tech.rabbit.r1launcher.initstep.widget.NumberPickerView;
import tech.rabbit.r1launcher.wss.Constant;
/* compiled from: ChangePasscodeFragment.kt */
@Metadata(d1 = {"\u0000|\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010!\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\b\b\u0007\u0018\u00002\u00020\u00012\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003J\b\u0010\u001f\u001a\u00020 H\u0002J\b\u0010!\u001a\u00020\rH\u0002J\u0010\u0010\"\u001a\u00020\r2\u0006\u0010#\u001a\u00020$H\u0002J\u0010\u0010%\u001a\u00020 2\u0006\u0010&\u001a\u00020\bH\u0016J&\u0010'\u001a\u0004\u0018\u00010(2\u0006\u0010)\u001a\u00020*2\b\u0010+\u001a\u0004\u0018\u00010,2\b\u0010-\u001a\u0004\u0018\u00010.H\u0016J\b\u0010/\u001a\u00020 H\u0016J\u0018\u00100\u001a\u00020 2\u0006\u00101\u001a\u00020$2\b\u00102\u001a\u0004\u0018\u000103J\b\u00104\u001a\u00020 H\u0016J\u001a\u00105\u001a\u00020 2\u0006\u00106\u001a\u00020(2\b\u0010-\u001a\u0004\u0018\u00010.H\u0016J\u0010\u00107\u001a\u00020 2\u0006\u0010#\u001a\u00020$H\u0002J\u0012\u00108\u001a\u00020 2\b\b\u0001\u00109\u001a\u00020$H\u0002J\u0010\u0010:\u001a\u00020 2\u0006\u0010#\u001a\u00020$H\u0002R\u0010\u0010\u0004\u001a\u0004\u0018\u00010\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\nX\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\nX\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\f\u001a\u00020\rX\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u000e\u001a\u00020\u000fX\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0010\u001a\u00020\u0011X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0012\u001a\u00020\u0011X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0013\u001a\u00020\u0014X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0015\u001a\u00020\u0016X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0017\u001a\u00020\u0016X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0018\u001a\u00020\u0016X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0019\u001a\u00020\u0016X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u001a\u001a\u00020\u0016X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u001b\u001a\u00020\u0016X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u001c\u001a\u00020\u0016X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u001d\u001a\u00020\u0016X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u001e\u001a\u00020\u0016X\u0082.¢\u0006\u0002\n\u0000¨\u0006;"}, d2 = {"Ltech/rabbit/r1launcher/settings/security/ChangePasscodeFragment;", "Landroidx/fragment/app/Fragment;", "Ltech/rabbit/r1launcher/initstep/widget/NumberPickerView$OnNumberPickerListener;", "()V", "animator", "Landroid/animation/ValueAnimator;", "confirmedPasscodeContainer", "", "", "flContinueContainer", "Landroid/widget/FrameLayout;", "flSuccessContainer", "isEnter4Length", "", "lastTimeClicked", "", "llBackContainer", "Landroid/widget/LinearLayout;", "llTipContainer", "numberPickerView", "Ltech/rabbit/r1launcher/initstep/widget/NumberPickerView;", "tvBackTitle", "Landroid/widget/TextView;", "tvConfirmPasscode", "tvContinue", "tvRetry", "tvSuccess", "tvSuccessTip", "tvTips", "tvTitle", "tvToFinish", "hideBack", "", "isBackShowing", "isEqualTips", "stringResId", "", "onConfirmItem", "text", "onCreateView", "Landroid/view/View;", "inflater", "Landroid/view/LayoutInflater;", "container", "Landroid/view/ViewGroup;", "savedInstanceState", "Landroid/os/Bundle;", "onDestroyView", "onKeyCodeEvent", "keyCode", NotificationCompat.CATEGORY_EVENT, "Landroid/view/KeyEvent;", "onScroll", "onViewCreated", "view", "setTextToTipsView", "showBack", "backTitleResId", "updateCurrentTipsId", "app_productionEnvRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class ChangePasscodeFragment extends Fragment implements NumberPickerView.OnNumberPickerListener {
public static final int $stable = 8;
private ValueAnimator animator;
private final List<String> confirmedPasscodeContainer;
private FrameLayout flContinueContainer;
private FrameLayout flSuccessContainer;
private boolean isEnter4Length;
private long lastTimeClicked;
private LinearLayout llBackContainer;
private LinearLayout llTipContainer;
private NumberPickerView numberPickerView;
private TextView tvBackTitle;
private TextView tvConfirmPasscode;
private TextView tvContinue;
private TextView tvRetry;
private TextView tvSuccess;
private TextView tvSuccessTip;
private TextView tvTips;
private TextView tvTitle;
private TextView tvToFinish;
public ChangePasscodeFragment() {
super(R.layout.fragment_change_passcode);
this.confirmedPasscodeContainer = new ArrayList();
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Intrinsics.checkNotNullParameter(inflater, "inflater");
View onCreateView = super.onCreateView(inflater, container, savedInstanceState);
NumberPickerView numberPickerView = null;
if (onCreateView == null) {
return null;
}
View findViewById = onCreateView.findViewById(R.id.tv_title);
Intrinsics.checkNotNullExpressionValue(findViewById, "findViewById(...)");
this.tvTitle = (TextView) findViewById;
View findViewById2 = onCreateView.findViewById(R.id.npv_picker);
Intrinsics.checkNotNullExpressionValue(findViewById2, "findViewById(...)");
NumberPickerView numberPickerView2 = (NumberPickerView) findViewById2;
this.numberPickerView = numberPickerView2;
if (numberPickerView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView = numberPickerView2;
}
numberPickerView.setOnNumberPickerListener(this);
View findViewById3 = onCreateView.findViewById(R.id.tv_tip);
Intrinsics.checkNotNullExpressionValue(findViewById3, "findViewById(...)");
this.tvTips = (TextView) findViewById3;
View findViewById4 = onCreateView.findViewById(R.id.tv_retry);
Intrinsics.checkNotNullExpressionValue(findViewById4, "findViewById(...)");
this.tvRetry = (TextView) findViewById4;
View findViewById5 = onCreateView.findViewById(R.id.ll_tip_container);
Intrinsics.checkNotNullExpressionValue(findViewById5, "findViewById(...)");
this.llTipContainer = (LinearLayout) findViewById5;
View findViewById6 = onCreateView.findViewById(R.id.tv_to_finish);
Intrinsics.checkNotNullExpressionValue(findViewById6, "findViewById(...)");
this.tvToFinish = (TextView) findViewById6;
View findViewById7 = onCreateView.findViewById(R.id.tv_confirm_passcode);
Intrinsics.checkNotNullExpressionValue(findViewById7, "findViewById(...)");
this.tvConfirmPasscode = (TextView) findViewById7;
View findViewById8 = onCreateView.findViewById(R.id.tv_continue);
Intrinsics.checkNotNullExpressionValue(findViewById8, "findViewById(...)");
this.tvContinue = (TextView) findViewById8;
View findViewById9 = onCreateView.findViewById(R.id.fl_continue_container);
Intrinsics.checkNotNullExpressionValue(findViewById9, "findViewById(...)");
this.flContinueContainer = (FrameLayout) findViewById9;
View findViewById10 = onCreateView.findViewById(R.id.tv_success_tip);
Intrinsics.checkNotNullExpressionValue(findViewById10, "findViewById(...)");
this.tvSuccessTip = (TextView) findViewById10;
View findViewById11 = onCreateView.findViewById(R.id.tv_success);
Intrinsics.checkNotNullExpressionValue(findViewById11, "findViewById(...)");
this.tvSuccess = (TextView) findViewById11;
View findViewById12 = onCreateView.findViewById(R.id.fl_success_container);
Intrinsics.checkNotNullExpressionValue(findViewById12, "findViewById(...)");
this.flSuccessContainer = (FrameLayout) findViewById12;
View findViewById13 = onCreateView.findViewById(R.id.tv_back_title);
Intrinsics.checkNotNullExpressionValue(findViewById13, "findViewById(...)");
this.tvBackTitle = (TextView) findViewById13;
View findViewById14 = onCreateView.findViewById(R.id.ll_back_container);
Intrinsics.checkNotNullExpressionValue(findViewById14, "findViewById(...)");
this.llBackContainer = (LinearLayout) findViewById14;
return onCreateView;
}
@Override // androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle savedInstanceState) {
Intrinsics.checkNotNullParameter(view, "view");
super.onViewCreated(view, savedInstanceState);
setTextToTipsView(R.string.tips_passcode_create_a_passcode);
}
/* JADX INFO: Access modifiers changed from: private */
public final void setTextToTipsView(int stringResId) {
TextView textView = this.tvTips;
if (textView == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvTips");
textView = null;
}
textView.setText(stringResId);
updateCurrentTipsId(stringResId);
}
private final void updateCurrentTipsId(int stringResId) {
TextView textView = this.tvTips;
if (textView == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvTips");
textView = null;
}
textView.setTag(Integer.valueOf(stringResId));
}
private final boolean isEqualTips(int stringResId) {
TextView textView = this.tvTips;
if (textView == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvTips");
textView = null;
}
return Intrinsics.areEqual(textView.getTag(), Integer.valueOf(stringResId));
}
public final void onKeyCodeEvent(int keyCode, KeyEvent event) {
if (SystemClock.elapsedRealtime() - this.lastTimeClicked < 300) {
return;
}
this.lastTimeClicked = SystemClock.elapsedRealtime();
ValueAnimator valueAnimator = this.animator;
if (valueAnimator == null || !valueAnimator.isRunning()) {
FragmentActivity requireActivity = requireActivity();
NumberPickerView numberPickerView = null;
NumberPickerView numberPickerView2 = null;
NumberPickerView numberPickerView3 = null;
NumberPickerView numberPickerView4 = null;
NumberPickerView numberPickerView5 = null;
FrameLayout frameLayout = null;
NumberPickerView numberPickerView6 = null;
TextView textView = null;
NumberPickerView numberPickerView7 = null;
NumberPickerView numberPickerView8 = null;
TextView textView2 = null;
SecurityActivity securityActivity = requireActivity instanceof SecurityActivity ? (SecurityActivity) requireActivity : null;
if (securityActivity == null) {
return;
}
if (!Constants.INSTANCE.isSideButtonKeyCode(keyCode)) {
if (keyCode != 19) {
if (keyCode == 20) {
if (isBackShowing()) {
FrameLayout frameLayout2 = this.flContinueContainer;
if (frameLayout2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("flContinueContainer");
frameLayout2 = null;
}
if (frameLayout2.getAlpha() == 0.0f) {
hideBack();
NumberPickerView numberPickerView9 = this.numberPickerView;
if (numberPickerView9 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView8 = numberPickerView9;
}
numberPickerView8.setSelected(true);
return;
}
}
FrameLayout frameLayout3 = this.flContinueContainer;
if (frameLayout3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("flContinueContainer");
frameLayout3 = null;
}
if (frameLayout3.getAlpha() != 1.0f) {
NumberPickerView numberPickerView10 = this.numberPickerView;
if (numberPickerView10 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView = numberPickerView10;
}
numberPickerView.onScrollDown();
return;
}
hideBack();
TextView textView3 = this.tvContinue;
if (textView3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
textView3 = null;
}
textView3.setSelected(true);
TextView textView4 = this.tvContinue;
if (textView4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
} else {
textView2 = textView4;
}
textView2.setTextSize(2, 30.0f);
return;
}
return;
}
if (isBackShowing()) {
FrameLayout frameLayout4 = this.flContinueContainer;
if (frameLayout4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("flContinueContainer");
frameLayout4 = null;
}
if (frameLayout4.getAlpha() == 0.0f) {
hideBack();
NumberPickerView numberPickerView11 = this.numberPickerView;
if (numberPickerView11 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView6 = numberPickerView11;
}
numberPickerView6.setSelected(true);
return;
}
}
FrameLayout frameLayout5 = this.flContinueContainer;
if (frameLayout5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("flContinueContainer");
frameLayout5 = null;
}
if (frameLayout5.getAlpha() != 1.0f) {
NumberPickerView numberPickerView12 = this.numberPickerView;
if (numberPickerView12 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView7 = numberPickerView12;
}
numberPickerView7.onScrollUp();
return;
}
showBack(R.string.tip_init_step_set_passcode_reset_passcode);
NumberPickerView numberPickerView13 = this.numberPickerView;
if (numberPickerView13 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView13 = null;
}
numberPickerView13.setSelected(false);
TextView textView5 = this.tvContinue;
if (textView5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
textView5 = null;
}
textView5.setSelected(false);
TextView textView6 = this.tvContinue;
if (textView6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
} else {
textView = textView6;
}
textView.setTextSize(2, 24.0f);
return;
}
NumberPickerView numberPickerView14 = this.numberPickerView;
if (numberPickerView14 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView14 = null;
}
if (!numberPickerView14.isSelected()) {
FrameLayout frameLayout6 = this.flSuccessContainer;
if (frameLayout6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("flSuccessContainer");
frameLayout6 = null;
}
if (frameLayout6.getAlpha() == 1.0f) {
hideBack();
securityActivity.gotoSecurityFragment();
return;
}
FrameLayout frameLayout7 = this.flContinueContainer;
if (frameLayout7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("flContinueContainer");
} else {
frameLayout = frameLayout7;
}
if (frameLayout.getAlpha() == 1.0f) {
if (isBackShowing()) {
final ValueAnimator duration = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(500L);
duration.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda4
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator2) {
ChangePasscodeFragment.onKeyCodeEvent$lambda$14$lambda$11(ChangePasscodeFragment.this, valueAnimator2);
}
});
Intrinsics.checkNotNull(duration);
duration.addListener(new Animator.AnimatorListener(duration, this, this) { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onKeyCodeEvent$lambda$14$$inlined$addListener$default$1
final /* synthetic */ ValueAnimator $this_apply$inlined;
final /* synthetic */ ChangePasscodeFragment this$0;
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
this.$this_apply$inlined.removeAllUpdateListeners();
this.$this_apply$inlined.removeAllListeners();
this.this$0.animator = null;
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
List list;
TextView textView7;
TextView textView8;
NumberPickerView numberPickerView15;
NumberPickerView numberPickerView16;
this.this$0.isEnter4Length = false;
list = this.this$0.confirmedPasscodeContainer;
list.clear();
this.this$0.hideBack();
this.this$0.setTextToTipsView(R.string.tips_passcode_create_a_passcode);
textView7 = this.this$0.tvContinue;
NumberPickerView numberPickerView17 = null;
if (textView7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
textView7 = null;
}
textView7.setSelected(false);
textView8 = this.this$0.tvContinue;
if (textView8 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
textView8 = null;
}
textView8.setTextSize(2, 24.0f);
numberPickerView15 = this.this$0.numberPickerView;
if (numberPickerView15 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView15 = null;
}
numberPickerView15.reset();
numberPickerView16 = this.this$0.numberPickerView;
if (numberPickerView16 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView17 = numberPickerView16;
}
numberPickerView17.setSelected(true);
}
});
this.animator = duration;
duration.start();
return;
}
final ValueAnimator duration2 = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(500L);
duration2.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda5
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator2) {
ChangePasscodeFragment.onKeyCodeEvent$lambda$19$lambda$16(ChangePasscodeFragment.this, valueAnimator2);
}
});
Intrinsics.checkNotNull(duration2);
duration2.addListener(new Animator.AnimatorListener(duration2, this, this) { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onKeyCodeEvent$lambda$19$$inlined$addListener$default$1
final /* synthetic */ ValueAnimator $this_apply$inlined;
final /* synthetic */ ChangePasscodeFragment this$0;
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
this.$this_apply$inlined.removeAllUpdateListeners();
this.$this_apply$inlined.removeAllListeners();
this.this$0.animator = null;
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
NumberPickerView numberPickerView15;
this.this$0.setTextToTipsView(R.string.tips_passcode_confirm_passcode);
numberPickerView15 = this.this$0.numberPickerView;
if (numberPickerView15 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView15 = null;
}
numberPickerView15.setSelected(true);
}
});
this.animator = duration2;
duration2.start();
return;
}
if (this.confirmedPasscodeContainer.isEmpty() && isBackShowing()) {
hideBack();
securityActivity.gotoSecurityFragment();
return;
} else {
if (this.confirmedPasscodeContainer.size() == 4 && this.isEnter4Length) {
final ValueAnimator duration3 = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(500L);
duration3.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda6
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator2) {
ChangePasscodeFragment.onKeyCodeEvent$lambda$24$lambda$21(ChangePasscodeFragment.this, valueAnimator2);
}
});
Intrinsics.checkNotNull(duration3);
duration3.addListener(new Animator.AnimatorListener(duration3, this, this) { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onKeyCodeEvent$lambda$24$$inlined$addListener$default$1
final /* synthetic */ ValueAnimator $this_apply$inlined;
final /* synthetic */ ChangePasscodeFragment this$0;
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
this.$this_apply$inlined.removeAllUpdateListeners();
this.$this_apply$inlined.removeAllListeners();
this.this$0.animator = null;
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
List list;
TextView textView7;
TextView textView8;
NumberPickerView numberPickerView15;
NumberPickerView numberPickerView16;
TextView textView9;
this.this$0.isEnter4Length = false;
list = this.this$0.confirmedPasscodeContainer;
list.clear();
this.this$0.hideBack();
this.this$0.setTextToTipsView(R.string.tips_passcode_create_a_passcode);
textView7 = this.this$0.tvContinue;
TextView textView10 = null;
if (textView7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
textView7 = null;
}
textView7.setSelected(false);
textView8 = this.this$0.tvContinue;
if (textView8 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
textView8 = null;
}
textView8.setTextSize(2, 24.0f);
numberPickerView15 = this.this$0.numberPickerView;
if (numberPickerView15 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView15 = null;
}
numberPickerView15.setSelected(true);
numberPickerView16 = this.this$0.numberPickerView;
if (numberPickerView16 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView16 = null;
}
numberPickerView16.reset();
textView9 = this.this$0.tvRetry;
if (textView9 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvRetry");
} else {
textView10 = textView9;
}
textView10.setVisibility(8);
}
});
this.animator = duration3;
duration3.start();
return;
}
return;
}
}
NumberPickerView numberPickerView15 = this.numberPickerView;
if (numberPickerView15 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView15 = null;
}
if (!numberPickerView15.isDeleteItem()) {
NumberPickerView numberPickerView16 = this.numberPickerView;
if (numberPickerView16 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView16 = null;
}
if (numberPickerView16.isNormalItemInSelectArea()) {
NumberPickerView numberPickerView17 = this.numberPickerView;
if (numberPickerView17 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView5 = numberPickerView17;
}
numberPickerView5.showSelectedConfirmAnimation();
return;
}
return;
}
if (this.confirmedPasscodeContainer.isEmpty() && !isBackShowing()) {
showBack(R.string.tip_settings_change_passcode_passcode);
NumberPickerView numberPickerView18 = this.numberPickerView;
if (numberPickerView18 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView2 = numberPickerView18;
}
numberPickerView2.setSelected(false);
return;
}
if (this.confirmedPasscodeContainer.size() == 4 && this.isEnter4Length && !isBackShowing()) {
showBack(R.string.tip_init_step_set_passcode_reset_passcode);
NumberPickerView numberPickerView19 = this.numberPickerView;
if (numberPickerView19 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView3 = numberPickerView19;
}
numberPickerView3.setSelected(false);
return;
}
NumberPickerView numberPickerView20 = this.numberPickerView;
if (numberPickerView20 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView20 = null;
}
if (numberPickerView20.isAvailable()) {
NumberPickerView numberPickerView21 = this.numberPickerView;
if (numberPickerView21 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView4 = numberPickerView21;
}
numberPickerView4.onDelete();
CollectionsKt.removeLast(this.confirmedPasscodeContainer);
if (this.confirmedPasscodeContainer.isEmpty()) {
final ValueAnimator duration4 = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(300L);
duration4.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda0
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator2) {
ChangePasscodeFragment.onKeyCodeEvent$lambda$4$lambda$1(ChangePasscodeFragment.this, valueAnimator2);
}
});
Intrinsics.checkNotNull(duration4);
duration4.addListener(new Animator.AnimatorListener(duration4, this, this) { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onKeyCodeEvent$lambda$4$$inlined$addListener$default$1
final /* synthetic */ ValueAnimator $this_apply$inlined;
final /* synthetic */ ChangePasscodeFragment this$0;
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
this.$this_apply$inlined.removeAllUpdateListeners();
this.$this_apply$inlined.removeAllListeners();
this.this$0.animator = null;
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
this.this$0.setTextToTipsView(R.string.tips_passcode_create_a_passcode);
}
});
this.animator = duration4;
duration4.start();
} else if (this.confirmedPasscodeContainer.size() == 4) {
final ValueAnimator duration5 = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(300L);
duration5.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda3
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator2) {
ChangePasscodeFragment.onKeyCodeEvent$lambda$9$lambda$6(ChangePasscodeFragment.this, valueAnimator2);
}
});
Intrinsics.checkNotNull(duration5);
duration5.addListener(new Animator.AnimatorListener(duration5, this, this) { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onKeyCodeEvent$lambda$9$$inlined$addListener$default$1
final /* synthetic */ ValueAnimator $this_apply$inlined;
final /* synthetic */ ChangePasscodeFragment this$0;
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
this.$this_apply$inlined.removeAllUpdateListeners();
this.$this_apply$inlined.removeAllListeners();
this.this$0.animator = null;
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
this.this$0.setTextToTipsView(R.string.tips_passcode_confirm_passcode);
}
});
this.animator = duration5;
duration5.start();
}
onConfirmItem("");
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onKeyCodeEvent$lambda$4$lambda$1(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
LinearLayout linearLayout = this$0.llTipContainer;
if (linearLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("llTipContainer");
linearLayout = null;
}
linearLayout.setAlpha(floatValue);
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onKeyCodeEvent$lambda$9$lambda$6(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
LinearLayout linearLayout = this$0.llTipContainer;
if (linearLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("llTipContainer");
linearLayout = null;
}
linearLayout.setAlpha(floatValue);
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onKeyCodeEvent$lambda$14$lambda$11(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
NumberPickerView numberPickerView = this$0.numberPickerView;
LinearLayout linearLayout = null;
if (numberPickerView == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView = null;
}
numberPickerView.setAlpha(floatValue);
FrameLayout frameLayout = this$0.flContinueContainer;
if (frameLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("flContinueContainer");
frameLayout = null;
}
frameLayout.setAlpha(1 - floatValue);
LinearLayout linearLayout2 = this$0.llTipContainer;
if (linearLayout2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("llTipContainer");
} else {
linearLayout = linearLayout2;
}
linearLayout.setAlpha(floatValue);
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onKeyCodeEvent$lambda$19$lambda$16(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
FrameLayout frameLayout = this$0.flContinueContainer;
LinearLayout linearLayout = null;
if (frameLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("flContinueContainer");
frameLayout = null;
}
frameLayout.setAlpha(1 - floatValue);
NumberPickerView numberPickerView = this$0.numberPickerView;
if (numberPickerView == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView = null;
}
numberPickerView.setAlpha(floatValue);
LinearLayout linearLayout2 = this$0.llTipContainer;
if (linearLayout2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("llTipContainer");
} else {
linearLayout = linearLayout2;
}
linearLayout.setAlpha(floatValue);
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onKeyCodeEvent$lambda$24$lambda$21(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
NumberPickerView numberPickerView = this$0.numberPickerView;
LinearLayout linearLayout = null;
if (numberPickerView == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView = null;
}
numberPickerView.setAlpha(floatValue);
LinearLayout linearLayout2 = this$0.llTipContainer;
if (linearLayout2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("llTipContainer");
} else {
linearLayout = linearLayout2;
}
linearLayout.setAlpha(floatValue);
}
@Override // tech.rabbit.r1launcher.initstep.widget.NumberPickerView.OnNumberPickerListener
public void onScroll() {
if (isEqualTips(R.string.tips_passcode_create_a_passcode) || isEqualTips(R.string.tips_passcode_confirm_passcode) || isEqualTips(R.string.tips_passcode_set_codes_did_not_match)) {
ValueAnimator valueAnimator = this.animator;
if (valueAnimator != null) {
valueAnimator.cancel();
}
this.animator = null;
updateCurrentTipsId(R.string.tips_passcode_scroll_up_to_select_next_digit);
final ValueAnimator duration = ValueAnimator.ofFloat(1.0f, 0.0f, 1.0f).setDuration(300L);
duration.setStartDelay(500L);
duration.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda2
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator2) {
ChangePasscodeFragment.onScroll$lambda$28$lambda$26(ChangePasscodeFragment.this, valueAnimator2);
}
});
Intrinsics.checkNotNull(duration);
duration.addListener(new Animator.AnimatorListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onScroll$lambda$28$$inlined$addListener$default$1
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
duration.removeAllUpdateListeners();
duration.removeAllListeners();
this.animator = null;
}
});
this.animator = duration;
duration.start();
}
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onScroll$lambda$28$lambda$26(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
LinearLayout linearLayout = this$0.llTipContainer;
TextView textView = null;
if (linearLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("llTipContainer");
linearLayout = null;
}
linearLayout.setAlpha(floatValue);
if (floatValue < 0.2d) {
this$0.setTextToTipsView(R.string.tips_passcode_scroll_up_to_select_next_digit);
TextView textView2 = this$0.tvRetry;
if (textView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvRetry");
} else {
textView = textView2;
}
textView.setVisibility(8);
}
}
@Override // tech.rabbit.r1launcher.initstep.widget.NumberPickerView.OnNumberPickerListener
public void onConfirmItem(String text) {
Intrinsics.checkNotNullParameter(text, "text");
ValueAnimator valueAnimator = this.animator;
if (valueAnimator == null || !valueAnimator.isRunning()) {
if (!Intrinsics.areEqual("", text)) {
this.confirmedPasscodeContainer.add(text);
}
if (this.confirmedPasscodeContainer.size() == 1 || this.confirmedPasscodeContainer.size() == 5) {
onScroll();
}
TextView textView = null;
LinearLayout linearLayout = null;
if (isEqualTips(R.string.tips_passcode_scroll_up_to_select_next_digit)) {
ValueAnimator valueAnimator2 = this.animator;
if (valueAnimator2 != null) {
valueAnimator2.cancel();
}
this.animator = null;
updateCurrentTipsId(0);
float[] fArr = new float[2];
LinearLayout linearLayout2 = this.llTipContainer;
if (linearLayout2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("llTipContainer");
} else {
linearLayout = linearLayout2;
}
fArr[0] = linearLayout.getAlpha();
fArr[1] = 0.0f;
final ValueAnimator duration = ValueAnimator.ofFloat(fArr).setDuration(300L);
duration.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda7
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator3) {
ChangePasscodeFragment.onConfirmItem$lambda$32$lambda$30(ChangePasscodeFragment.this, valueAnimator3);
}
});
Intrinsics.checkNotNull(duration);
duration.addListener(new Animator.AnimatorListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onConfirmItem$lambda$32$$inlined$addListener$default$1
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
duration.removeAllUpdateListeners();
duration.removeAllListeners();
this.animator = null;
}
});
this.animator = duration;
duration.start();
return;
}
if (this.confirmedPasscodeContainer.size() == 4 && !this.isEnter4Length) {
this.isEnter4Length = true;
final ValueAnimator duration2 = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(500L);
duration2.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda8
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator3) {
ChangePasscodeFragment.onConfirmItem$lambda$37$lambda$34(ChangePasscodeFragment.this, valueAnimator3);
}
});
Intrinsics.checkNotNull(duration2);
duration2.addListener(new Animator.AnimatorListener(duration2, this) { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onConfirmItem$lambda$37$$inlined$addListener$default$1
final /* synthetic */ ValueAnimator $this_apply$inlined;
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
NumberPickerView numberPickerView;
NumberPickerView numberPickerView2;
numberPickerView = ChangePasscodeFragment.this.numberPickerView;
if (numberPickerView == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView = null;
}
numberPickerView.setSelected(false);
numberPickerView2 = ChangePasscodeFragment.this.numberPickerView;
if (numberPickerView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView2 = null;
}
numberPickerView2.reset();
this.$this_apply$inlined.removeAllUpdateListeners();
this.$this_apply$inlined.removeAllListeners();
ChangePasscodeFragment.this.animator = null;
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
TextView textView2;
List list;
TextView textView3;
TextView textView4;
textView2 = ChangePasscodeFragment.this.tvConfirmPasscode;
TextView textView5 = null;
if (textView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvConfirmPasscode");
textView2 = null;
}
list = ChangePasscodeFragment.this.confirmedPasscodeContainer;
textView2.setText(CollectionsKt.joinToString$default(CollectionsKt.toList(list.subList(0, 4)), "", null, null, 0, null, null, 62, null));
textView3 = ChangePasscodeFragment.this.tvContinue;
if (textView3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
textView3 = null;
}
textView3.setSelected(true);
textView4 = ChangePasscodeFragment.this.tvContinue;
if (textView4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvContinue");
} else {
textView5 = textView4;
}
textView5.setTextSize(2, 30.0f);
}
});
this.animator = duration2;
duration2.start();
return;
}
if (this.confirmedPasscodeContainer.size() == 8) {
List list = CollectionsKt.toList(this.confirmedPasscodeContainer.subList(0, 4));
if (Intrinsics.areEqual(list, CollectionsKt.toList(this.confirmedPasscodeContainer.subList(4, 8)))) {
Constant.savePasscode(CollectionsKt.joinToString$default(list, "", null, null, 0, null, null, 62, null));
final ValueAnimator duration3 = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(500L);
duration3.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda9
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator3) {
ChangePasscodeFragment.onConfirmItem$lambda$42$lambda$39(ChangePasscodeFragment.this, valueAnimator3);
}
});
Intrinsics.checkNotNull(duration3);
duration3.addListener(new Animator.AnimatorListener(duration3, this) { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onConfirmItem$lambda$42$$inlined$addListener$default$1
final /* synthetic */ ValueAnimator $this_apply$inlined;
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
NumberPickerView numberPickerView;
NumberPickerView numberPickerView2;
numberPickerView = ChangePasscodeFragment.this.numberPickerView;
if (numberPickerView == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView = null;
}
numberPickerView.setSelected(false);
numberPickerView2 = ChangePasscodeFragment.this.numberPickerView;
if (numberPickerView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView2 = null;
}
numberPickerView2.reset();
this.$this_apply$inlined.removeAllUpdateListeners();
this.$this_apply$inlined.removeAllListeners();
ChangePasscodeFragment.this.animator = null;
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
TextView textView2;
textView2 = ChangePasscodeFragment.this.tvSuccess;
if (textView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvSuccess");
textView2 = null;
}
textView2.setSelected(true);
}
});
this.animator = duration3;
duration3.start();
return;
}
this.confirmedPasscodeContainer.clear();
this.confirmedPasscodeContainer.addAll(list);
final ValueAnimator duration4 = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(500L);
duration4.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda10
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator3) {
ChangePasscodeFragment.onConfirmItem$lambda$51$lambda$44(ChangePasscodeFragment.this, valueAnimator3);
}
});
Intrinsics.checkNotNull(duration4);
duration4.addListener(new Animator.AnimatorListener(duration4, this, this) { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onConfirmItem$lambda$51$$inlined$addListener$default$1
final /* synthetic */ ValueAnimator $this_apply$inlined;
final /* synthetic */ ChangePasscodeFragment this$0;
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
this.$this_apply$inlined.removeAllUpdateListeners();
this.$this_apply$inlined.removeAllListeners();
this.this$0.animator = null;
final ValueAnimator duration5 = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(500L);
final ChangePasscodeFragment changePasscodeFragment = this.this$0;
duration5.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onConfirmItem$7$2$1$1
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator it) {
FrameLayout frameLayout;
NumberPickerView numberPickerView;
LinearLayout linearLayout3;
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
frameLayout = ChangePasscodeFragment.this.flSuccessContainer;
LinearLayout linearLayout4 = null;
if (frameLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("flSuccessContainer");
frameLayout = null;
}
frameLayout.setAlpha(1 - floatValue);
numberPickerView = ChangePasscodeFragment.this.numberPickerView;
if (numberPickerView == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView = null;
}
numberPickerView.setAlpha(floatValue);
linearLayout3 = ChangePasscodeFragment.this.llTipContainer;
if (linearLayout3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("llTipContainer");
} else {
linearLayout4 = linearLayout3;
}
linearLayout4.setAlpha(floatValue);
}
});
Intrinsics.checkNotNull(duration5);
final ChangePasscodeFragment changePasscodeFragment2 = this.this$0;
duration5.addListener(new Animator.AnimatorListener(duration5, changePasscodeFragment2) { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onConfirmItem$lambda$51$lambda$49$lambda$47$$inlined$addListener$default$1
final /* synthetic */ ValueAnimator $this_apply$inlined;
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator2) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator2) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator2) {
TextView textView2;
TextView textView3;
textView2 = ChangePasscodeFragment.this.tvSuccessTip;
if (textView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvSuccessTip");
textView2 = null;
}
textView2.setText(R.string.tip_settings_change_passcode_passcode_has_been_set);
textView3 = ChangePasscodeFragment.this.tvSuccess;
if (textView3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvSuccess");
textView3 = null;
}
textView3.setVisibility(0);
this.$this_apply$inlined.removeAllUpdateListeners();
this.$this_apply$inlined.removeAllListeners();
ChangePasscodeFragment.this.animator = null;
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator2) {
NumberPickerView numberPickerView;
TextView textView2;
numberPickerView = ChangePasscodeFragment.this.numberPickerView;
TextView textView3 = null;
if (numberPickerView == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView = null;
}
numberPickerView.reset();
ChangePasscodeFragment.this.setTextToTipsView(R.string.tips_passcode_set_codes_did_not_match);
textView2 = ChangePasscodeFragment.this.tvRetry;
if (textView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvRetry");
} else {
textView3 = textView2;
}
textView3.setVisibility(0);
}
});
this.this$0.animator = duration5;
duration5.start();
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
TextView textView2;
TextView textView3;
textView2 = this.this$0.tvSuccessTip;
TextView textView4 = null;
if (textView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvSuccessTip");
textView2 = null;
}
textView2.setText("");
textView3 = this.this$0.tvSuccess;
if (textView3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvSuccess");
} else {
textView4 = textView3;
}
textView4.setVisibility(8);
}
});
this.animator = duration4;
duration4.start();
return;
}
if (this.confirmedPasscodeContainer.size() == 3 || this.confirmedPasscodeContainer.size() == 7) {
TextView textView2 = this.tvToFinish;
if (textView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvToFinish");
textView2 = null;
}
if (textView2.getAlpha() == 0.0f) {
final ValueAnimator duration5 = ValueAnimator.ofFloat(0.0f, 1.0f).setDuration(300L);
duration5.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda11
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator3) {
ChangePasscodeFragment.onConfirmItem$lambda$55$lambda$53(ChangePasscodeFragment.this, valueAnimator3);
}
});
Intrinsics.checkNotNull(duration5);
duration5.addListener(new Animator.AnimatorListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onConfirmItem$lambda$55$$inlined$addListener$default$1
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
duration5.removeAllUpdateListeners();
duration5.removeAllListeners();
this.animator = null;
}
});
this.animator = duration5;
duration5.start();
return;
}
}
if (this.confirmedPasscodeContainer.size() == 3 || this.confirmedPasscodeContainer.size() == 7) {
return;
}
TextView textView3 = this.tvToFinish;
if (textView3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvToFinish");
} else {
textView = textView3;
}
if (textView.getAlpha() == 1.0f) {
final ValueAnimator duration6 = ValueAnimator.ofFloat(1.0f, 0.0f).setDuration(300L);
duration6.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$$ExternalSyntheticLambda1
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator3) {
ChangePasscodeFragment.onConfirmItem$lambda$59$lambda$57(ChangePasscodeFragment.this, valueAnimator3);
}
});
Intrinsics.checkNotNull(duration6);
duration6.addListener(new Animator.AnimatorListener() { // from class: tech.rabbit.r1launcher.settings.security.ChangePasscodeFragment$onConfirmItem$lambda$59$$inlined$addListener$default$1
@Override // android.animation.Animator.AnimatorListener
public void onAnimationCancel(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationRepeat(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
}
@Override // android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
duration6.removeAllUpdateListeners();
duration6.removeAllListeners();
this.animator = null;
}
});
this.animator = duration6;
duration6.start();
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onConfirmItem$lambda$32$lambda$30(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
LinearLayout linearLayout = this$0.llTipContainer;
if (linearLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("llTipContainer");
linearLayout = null;
}
linearLayout.setAlpha(floatValue);
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onConfirmItem$lambda$37$lambda$34(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
NumberPickerView numberPickerView = this$0.numberPickerView;
FrameLayout frameLayout = null;
if (numberPickerView == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView = null;
}
float f = 1 - floatValue;
numberPickerView.setAlpha(f);
TextView textView = this$0.tvToFinish;
if (textView == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvToFinish");
textView = null;
}
textView.setAlpha(f);
FrameLayout frameLayout2 = this$0.flContinueContainer;
if (frameLayout2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("flContinueContainer");
} else {
frameLayout = frameLayout2;
}
frameLayout.setAlpha(floatValue);
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onConfirmItem$lambda$42$lambda$39(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
FrameLayout frameLayout = this$0.flSuccessContainer;
NumberPickerView numberPickerView = null;
if (frameLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("flSuccessContainer");
frameLayout = null;
}
frameLayout.setAlpha(floatValue);
TextView textView = this$0.tvToFinish;
if (textView == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvToFinish");
textView = null;
}
float f = 1 - floatValue;
textView.setAlpha(f);
NumberPickerView numberPickerView2 = this$0.numberPickerView;
if (numberPickerView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView = numberPickerView2;
}
numberPickerView.setAlpha(f);
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onConfirmItem$lambda$51$lambda$44(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
FrameLayout frameLayout = this$0.flSuccessContainer;
NumberPickerView numberPickerView = null;
if (frameLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("flSuccessContainer");
frameLayout = null;
}
frameLayout.setAlpha(floatValue);
TextView textView = this$0.tvToFinish;
if (textView == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvToFinish");
textView = null;
}
float f = 1 - floatValue;
textView.setAlpha(f);
NumberPickerView numberPickerView2 = this$0.numberPickerView;
if (numberPickerView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
} else {
numberPickerView = numberPickerView2;
}
numberPickerView.setAlpha(f);
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onConfirmItem$lambda$55$lambda$53(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
TextView textView = this$0.tvToFinish;
if (textView == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvToFinish");
textView = null;
}
textView.setAlpha(floatValue);
}
/* JADX INFO: Access modifiers changed from: private */
public static final void onConfirmItem$lambda$59$lambda$57(ChangePasscodeFragment this$0, ValueAnimator it) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNullParameter(it, "it");
Object animatedValue = it.getAnimatedValue();
Intrinsics.checkNotNull(animatedValue, "null cannot be cast to non-null type kotlin.Float");
float floatValue = ((Float) animatedValue).floatValue();
TextView textView = this$0.tvToFinish;
if (textView == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvToFinish");
textView = null;
}
textView.setAlpha(floatValue);
}
@Override // androidx.fragment.app.Fragment
public void onDestroyView() {
this.isEnter4Length = false;
this.confirmedPasscodeContainer.clear();
NumberPickerView numberPickerView = this.numberPickerView;
if (numberPickerView == null) {
Intrinsics.throwUninitializedPropertyAccessException("numberPickerView");
numberPickerView = null;
}
numberPickerView.resetCacheData();
super.onDestroyView();
}
private final void showBack(int backTitleResId) {
TextView textView = this.tvBackTitle;
TextView textView2 = null;
if (textView == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvBackTitle");
textView = null;
}
textView.setText(backTitleResId);
LinearLayout linearLayout = this.llBackContainer;
if (linearLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("llBackContainer");
linearLayout = null;
}
linearLayout.setVisibility(0);
TextView textView3 = this.tvTitle;
if (textView3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvTitle");
} else {
textView2 = textView3;
}
textView2.setVisibility(8);
}
/* JADX INFO: Access modifiers changed from: private */
public final void hideBack() {
LinearLayout linearLayout = this.llBackContainer;
TextView textView = null;
if (linearLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("llBackContainer");
linearLayout = null;
}
linearLayout.setVisibility(8);
TextView textView2 = this.tvTitle;
if (textView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvTitle");
} else {
textView = textView2;
}
textView.setVisibility(0);
}
private final boolean isBackShowing() {
LinearLayout linearLayout = this.llBackContainer;
TextView textView = null;
if (linearLayout == null) {
Intrinsics.throwUninitializedPropertyAccessException("llBackContainer");
linearLayout = null;
}
if (linearLayout.getVisibility() == 0) {
TextView textView2 = this.tvTitle;
if (textView2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("tvTitle");
} else {
textView = textView2;
}
if (textView.getVisibility() != 0) {
return true;
}
}
return false;
}
}