正在查看: Mitra Bukalapak v2.55.0 应用的 BlackboxViewerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mitra Bukalapak v2.55.0 应用的 BlackboxViewerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bukalapak.android.lib.blackbox;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.ScrollView;
import androidx.appcompat.app.c;
import androidx.core.app.NotificationManagerCompat;
import com.bukalapak.android.lib.blackbox.BlackboxViewerActivity;
import defpackage.eo4;
import defpackage.gc7;
import defpackage.j87;
import defpackage.l40;
import java.lang.ref.WeakReference;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import kotlin.Metadata;
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0012\u0010\u0013J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0014J\u000e\u0010\b\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006R\u0014\u0010\f\u001a\u00020\t8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u000bR\u001c\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u000e0\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000f\u0010\u0010¨\u0006\u0014"}, d2 = {"Lcom/bukalapak/android/lib/blackbox/BlackboxViewerActivity;", "Landroidx/appcompat/app/c;", "Landroid/os/Bundle;", "savedInstanceState", "Llm9;", "onCreate", "", "keyword", "r", "Ljava/text/SimpleDateFormat;", "a", "Ljava/text/SimpleDateFormat;", "sdf", "", "Leo4;", "b", "Ljava/util/List;", "lines", "<init>", "()V", "lib_release"}, k = 1, mv = {1, NotificationManagerCompat.IMPORTANCE_MAX, 1})
public final class BlackboxViewerActivity extends c {
private final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.getDefault());
private List<eo4> lines = iu0.h();
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0004\u001a\u00020\u00032\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u0000H\n"}, d2 = {"", "Leo4;", "it", "Llm9;", "<anonymous>"}, k = 3, mv = {1, NotificationManagerCompat.IMPORTANCE_MAX, 1})
static final class a extends dk4 implements gx2<List<? extends eo4>, lm9> {
a() {
super(1);
}
public final void a(List<eo4> list) {
p64.h(list, "it");
BlackboxViewerActivity.this.lines = list;
BlackboxViewerActivity.this.r("");
}
public Object invoke(Object obj) {
a((List) obj);
return lm9.a;
}
}
@Metadata(d1 = {"\u0000!\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\r\n\u0002\u0010\b\n\u0002\b\u0007*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J(\u0010\u000b\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u00072\u0006\u0010\t\u001a\u00020\u00072\u0006\u0010\n\u001a\u00020\u0007H\u0016J(\u0010\r\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u00072\u0006\u0010\f\u001a\u00020\u00072\u0006\u0010\t\u001a\u00020\u0007H\u0016¨\u0006\u000e"}, d2 = {"com/bukalapak/android/lib/blackbox/BlackboxViewerActivity$b", "Landroid/text/TextWatcher;", "Landroid/text/Editable;", "s", "Llm9;", "afterTextChanged", "", "", "start", "count", "after", "beforeTextChanged", "before", "onTextChanged", "lib_release"}, k = 1, mv = {1, NotificationManagerCompat.IMPORTANCE_MAX, 1})
public static final class b implements TextWatcher {
final WeakReference<BlackboxViewerActivity> a;
b(WeakReference<BlackboxViewerActivity> weakReference) {
this.a = weakReference;
}
@Override
public void afterTextChanged(Editable editable) {
p64.h(editable, "s");
String obj = editable.toString();
BlackboxViewerActivity blackboxViewerActivity = this.a.get();
if (blackboxViewerActivity == null) {
return;
}
blackboxViewerActivity.r(obj);
}
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
p64.h(charSequence, "s");
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
p64.h(charSequence, "s");
}
}
public static final void s(BlackboxViewerActivity blackboxViewerActivity) {
p64.h(blackboxViewerActivity, "this$0");
((ScrollView) blackboxViewerActivity.findViewById(j87.b)).scrollTo(0, ((ScrollView) blackboxViewerActivity.findViewById(j87.b)).getMaxScrollAmount());
}
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(gc7.a);
l40.a.a(new a());
findViewById(j87.a).addTextChangedListener(new b(new WeakReference(this)));
}
public final void r(String str) {
p64.h(str, "keyword");
List<eo4> list = this.lines;
ArrayList arrayList = new ArrayList(iu0.r(list, 10));
for (eo4 eo4Var : list) {
arrayList.add(this.sdf.format(new Date(eo4Var.getTime())) + "\t\t" + eo4Var.getTag() + "\t\t" + eo4Var.getMessage());
}
ArrayList arrayList2 = new ArrayList();
for (Object obj : arrayList) {
if (bu8.P((String) obj, str, true)) {
arrayList2.add(obj);
}
}
findViewById(j87.c).setText(iu0.m0(arrayList2, "\n", (CharSequence) null, (CharSequence) null, 0, (CharSequence) null, (gx2) null, 62, (Object) null));
((ScrollView) findViewById(j87.b)).post(new Runnable() {
@Override
public final void run() {
BlackboxViewerActivity.s(BlackboxViewerActivity.this);
}
});
}
}