正在查看: Baubap v3.9.7 应用的 PostActivityV2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Baubap v3.9.7 应用的 PostActivityV2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package io.intercom.android.sdk.post;
import android.os.Bundle;
import d.i;
import io.intercom.android.sdk.Injector;
import io.intercom.android.sdk.Provider;
import io.intercom.android.sdk.actions.Actions;
import io.intercom.android.sdk.activities.IntercomBaseActivity;
import io.intercom.android.sdk.identity.AppConfig;
import io.intercom.android.sdk.m5.ConversationScreenOpenerKt;
import io.intercom.android.sdk.models.LastParticipatingAdmin;
import io.intercom.android.sdk.models.Part;
import io.intercom.android.sdk.utilities.TimeFormatter;
import j2.c;
import l10.b;
import m30.f;
public final class PostActivityV2 extends IntercomBaseActivity {
private static final String COMPOSER_IS_VISIBLE = "composer_is_visible";
public static final Companion Companion = new Companion(null);
private static final String LAST_PARTICIPANT = "last_participant";
private static final String PARCEL_CONVERSATION_ID = "parcel_conversation_id";
private static final String PARCEL_PART = "parcel_part";
private static final String POST_PREVIEW = "is_post_preview";
private final f injector$delegate = b.f0(PostActivityV2$injector$2.INSTANCE);
private final f appConfigProvider$delegate = b.f0(new PostActivityV2$appConfigProvider$2(this));
private final f timeFormatter$delegate = b.f0(new PostActivityV2$timeFormatter$2(this));
public static final class Companion {
private Companion() {
}
public Companion(kotlin.jvm.internal.f fVar) {
this();
}
}
public final Provider<AppConfig> getAppConfigProvider() {
return (Provider) this.appConfigProvider$delegate.getValue();
}
public final String getConversationId() {
Bundle extras = getIntent().getExtras();
if (extras == null) {
extras = new Bundle();
}
String string = extras.getString(PARCEL_CONVERSATION_ID, "");
xu.b.x(string, "data.getString(PARCEL_CONVERSATION_ID, \"\")");
return string;
}
public final Injector getInjector() {
return (Injector) this.injector$delegate.getValue();
}
public final Part getPart() {
Bundle extras = getIntent().getExtras();
if (extras != null) {
extras.setClassLoader(Part.class.getClassLoader());
if (extras.containsKey(PARCEL_PART)) {
Part part = (Part) extras.getParcelable(PARCEL_PART);
if (part != null) {
return part;
}
Part part2 = Part.NULL;
xu.b.x(part2, "NULL");
return part2;
}
}
Part part3 = Part.NULL;
xu.b.x(part3, "NULL");
return part3;
}
private final TimeFormatter getTimeFormatter() {
return (TimeFormatter) this.timeFormatter$delegate.getValue();
}
public final String getUserStatus() {
Bundle extras = getIntent().getExtras();
if (extras == null || !extras.containsKey(LAST_PARTICIPANT)) {
return "";
}
LastParticipatingAdmin lastParticipatingAdmin = (LastParticipatingAdmin) extras.getParcelable(LAST_PARTICIPANT);
if (LastParticipatingAdmin.isNull(lastParticipatingAdmin)) {
return "";
}
TimeFormatter timeFormatter = getTimeFormatter();
xu.b.v(lastParticipatingAdmin);
timeFormatter.getAdminActiveStatus(lastParticipatingAdmin, getAppConfigProvider());
return "";
}
public final boolean isComposerVisible() {
Bundle extras = getIntent().getExtras();
if (extras != null) {
return extras.getBoolean(COMPOSER_IS_VISIBLE, true);
}
return true;
}
public final boolean isPreview() {
Bundle extras = getIntent().getExtras();
if (extras == null) {
extras = new Bundle();
}
return extras.getBoolean(POST_PREVIEW, false);
}
public final void openConversation() {
Bundle extras = getIntent().getExtras();
if (extras == null) {
extras = new Bundle();
}
String string = extras.getString(PARCEL_CONVERSATION_ID, "");
LastParticipatingAdmin lastParticipatingAdmin = (LastParticipatingAdmin) extras.getParcelable(LAST_PARTICIPANT);
if (lastParticipatingAdmin == null) {
lastParticipatingAdmin = LastParticipatingAdmin.NULL;
}
getInjector().getMetricTracker().openedConversationFromFull(string, getPart().getId());
startActivity(ConversationScreenOpenerKt.getConversationIntent(this, string, lastParticipatingAdmin));
finish();
}
public final void sendPostAsRead() {
Bundle extras = getIntent().getExtras();
if (extras == null || !extras.containsKey(PARCEL_CONVERSATION_ID)) {
return;
}
String string = extras.getString(PARCEL_CONVERSATION_ID, "");
getInjector().getStore().dispatch(Actions.conversationMarkedAsRead(string));
getInjector().getApi().markConversationAsRead(string);
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
i.a(this, new c(new PostActivityV2$onCreate$1(this), true, -1329969746));
}
}