2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.settings.account;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import androidx.fragment.app.FragmentActivity;
|
|
|
|
import c.a.d.o;
|
|
|
|
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 */
|
|
|
|
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-06-27 20:53:42 +00:00
|
|
|
o.i(this.this$0, 2131892974, 0, 4);
|
2021-06-27 20:44:35 +00:00
|
|
|
StoreStream.Companion.getAuthentication().setAuthed(user.q());
|
|
|
|
Context context = this.this$0.getContext();
|
|
|
|
if (!(context == null || (googleSmartLockManager = GoogleSmartLockManagerKt.googleSmartLockManager(context)) == null)) {
|
|
|
|
googleSmartLockManager.updateAccountInfo(null, this.$newPasswordText);
|
|
|
|
}
|
|
|
|
FragmentActivity activity = this.this$0.getActivity();
|
|
|
|
if (activity != null) {
|
|
|
|
activity.finish();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|