34 lines
1.5 KiB
Java
34 lines
1.5 KiB
Java
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;
|
|
o.i(this.this$0, 2131893150, 0, 4);
|
|
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();
|
|
}
|
|
}
|
|
}
|