31 lines
1.3 KiB
Java
31 lines
1.3 KiB
Java
|
package com.discord.widgets.user;
|
||
|
|
||
|
import android.content.Context;
|
||
|
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: WidgetUserPasswordVerify.kt */
|
||
|
public final class WidgetUserPasswordVerify$updateAccountInfo$1<T> implements Action1<User> {
|
||
|
public final /* synthetic */ String $newEmail;
|
||
|
public final /* synthetic */ String $password;
|
||
|
public final /* synthetic */ WidgetUserPasswordVerify this$0;
|
||
|
|
||
|
public WidgetUserPasswordVerify$updateAccountInfo$1(WidgetUserPasswordVerify widgetUserPasswordVerify, String str, String str2) {
|
||
|
this.this$0 = widgetUserPasswordVerify;
|
||
|
this.$newEmail = str;
|
||
|
this.$password = str2;
|
||
|
}
|
||
|
|
||
|
public final void call(User user) {
|
||
|
GoogleSmartLockManager googleSmartLockManager;
|
||
|
StoreStream.Companion.getAuthentication().setAuthed(user.q());
|
||
|
Context context = this.this$0.getContext();
|
||
|
if (!(context == null || (googleSmartLockManager = GoogleSmartLockManagerKt.googleSmartLockManager(context)) == null)) {
|
||
|
googleSmartLockManager.updateAccountInfo(this.$newEmail, this.$password);
|
||
|
}
|
||
|
WidgetUserPasswordVerify.access$finishWithSuccess(this.this$0);
|
||
|
}
|
||
|
}
|