discord-jadx/app/src/main/java/com/discord/widgets/settings/account/WidgetSettingsAccountChangePassword$saveNewPassword$1.java

37 lines
1.6 KiB
Java
Raw Normal View History

2021-08-03 07:33:18 +00:00
package com.discord.widgets.settings.account;
import android.content.Context;
import androidx.fragment.app.FragmentActivity;
2021-12-17 21:59:34 +00:00
import b.a.d.m;
import com.discord.R;
2021-08-03 07:33:18 +00:00
import com.discord.api.user.User;
import com.discord.stores.StoreStream;
import com.discord.utilities.auth.GoogleSmartLockManager;
import com.discord.utilities.auth.GoogleSmartLockManagerKt;
import rx.functions.Action1;
/* compiled from: WidgetSettingsAccountChangePassword.kt */
2022-03-07 09:34:54 +00:00
/* loaded from: classes2.dex */
2021-08-03 07:33:18 +00:00
public final class WidgetSettingsAccountChangePassword$saveNewPassword$1<T> implements Action1<User> {
public final /* synthetic */ String $newPasswordText;
public final /* synthetic */ WidgetSettingsAccountChangePassword this$0;
public WidgetSettingsAccountChangePassword$saveNewPassword$1(WidgetSettingsAccountChangePassword widgetSettingsAccountChangePassword, String str) {
this.this$0 = widgetSettingsAccountChangePassword;
this.$newPasswordText = str;
}
public final void call(User user) {
GoogleSmartLockManager googleSmartLockManager;
2021-08-13 06:23:11 +00:00
m.i(this.this$0, R.string.saved_settings, 0, 4);
2022-01-27 07:52:47 +00:00
StoreStream.Companion.getAuthentication().setAuthed(user.p());
2021-08-03 07:33:18 +00:00
Context context = this.this$0.getContext();
if (!(context == null || (googleSmartLockManager = GoogleSmartLockManagerKt.googleSmartLockManager(context)) == null)) {
googleSmartLockManager.updateAccountInfo(null, this.$newPasswordText);
}
2022-01-13 08:07:50 +00:00
FragmentActivity activity = this.this$0.e();
2021-08-03 07:33:18 +00:00
if (activity != null) {
activity.finish();
}
}
}