LINE.apk(点击下载) / SettingsBeaconUserLogFragment.java
package jp.naver.line.android.activity.setting.beacon;
import android.content.Context;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewStub;
import android.view.Window;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import e93.a;
import e93.j;
import ee3.i;
import em3.q;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import jp.naver.line.android.R;
import jp.naver.line.android.activity.setting.fragment.SettingsBaseFragment;
import jp.naver.line.android.util.k1;
import kotlin.Lazy;
import kotlin.Metadata;
import qk.b;
import ql3.u;
import sm3.r;
import um3.g;
import xs.c;
import zi1.h;
import zi1.n;
@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Ljp/naver/line/android/activity/setting/beacon/SettingsBeaconUserLogFragment;", "Ljp/naver/line/android/activity/setting/fragment/SettingsBaseFragment;", "<init>", "()V", "app_productionRelease"}, k = 1, mv = {1, 6, 0})
public final class SettingsBeaconUserLogFragment extends SettingsBaseFragment {
@Deprecated
/* renamed from: k reason: collision with root package name */
public static final h[] f96343k;
/* renamed from: e reason: collision with root package name */
public final Lazy f96344e = c.f(this, a.f67502g, null, 2);
/* renamed from: f reason: collision with root package name */
public View f96345f;
/* renamed from: g reason: collision with root package name */
public Lazy<? extends View> f96346g;
/* renamed from: h reason: collision with root package name */
public RecyclerView f96347h;
/* renamed from: i reason: collision with root package name */
public View f96348i;
/* renamed from: j reason: collision with root package name */
public e93.c f96349j;
static {
Integer[] numArr = {Integer.valueOf((int) R.id.access_log_description_text), Integer.valueOf((int) R.id.access_log_display_description), Integer.valueOf((int) R.id.access_log_warning_description)};
ArrayList arrayList = new ArrayList(3);
for (int i14 = 0; i14 < 3; i14++) {
arrayList.add(new h(numArr[i14].intValue(), i.f68025g));
}
Integer[] numArr2 = {Integer.valueOf((int) R.id.access_log_detail_title), Integer.valueOf((int) R.id.access_log_display_subtitle), Integer.valueOf((int) R.id.access_log_warning_subtitle)};
ArrayList arrayList2 = new ArrayList(3);
for (int i15 = 0; i15 < 3; i15++) {
arrayList2.add(new h(numArr2[i15].intValue(), i.f68021c));
}
List k04 = u.k0(arrayList, arrayList2);
Integer[] numArr3 = {Integer.valueOf((int) R.id.access_log_empty_view), Integer.valueOf((int) R.id.beacon_user_log_error_message)};
ArrayList arrayList3 = new ArrayList(2);
for (int i16 = 0; i16 < 2; i16++) {
arrayList3.add(new h(numArr3[i16].intValue(), i.f68040v));
}
Object[] array = u.m0(u.k0(k04, arrayList3), new h[]{new h(R.id.access_log_description_separator, i.f68024f)}).toArray(new h[0]);
Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array<T of kotlin.collections.ArraysKt__ArraysJVMKt.toTypedArray>");
f96343k = (h[]) array;
}
public final a Y4() {
return (a) this.f96344e.getValue();
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
return b.a(layoutInflater, "inflater", R.layout.settings_beacon_user_log_fragment, viewGroup, false, "inflater.inflate(R.layou…agment, container, false)");
}
@Override // androidx.fragment.app.Fragment
public void onStart() {
super.onStart();
Window window = requireActivity().getWindow();
q.e(window, "requireActivity().window");
View findViewById = requireView().findViewById(R.id.access_log_content);
q.e(findViewById, "requireView().findViewBy…(R.id.access_log_content)");
sb0.b.b(window, findViewById, sb0.h.f142330g, 0, null, 0, 56);
}
@Override // androidx.fragment.app.Fragment, jp.naver.line.android.activity.setting.fragment.SettingsBaseFragment
public void onViewCreated(View view, Bundle bundle) {
q.f(view, "view");
super.onViewCreated(view, bundle);
Context requireContext = requireContext();
q.e(requireContext, "requireContext()");
h[] hVarArr = f96343k;
((n) rb.a.d(requireContext, n.f199365z3)).i(view, (h[]) Arrays.copyOf(hVarArr, hVarArr.length));
this.f96379b.I(R.string.settings_privacy_beaconlog_title);
this.f96379b.R(true);
View findViewById = view.findViewById(R.id.access_log_content);
q.e(findViewById, "view.findViewById(R.id.access_log_content)");
this.f96345f = findViewById;
View findViewById2 = view.findViewById(R.id.access_log_error_layout);
q.e(findViewById2, "view.findViewById<ViewSt….access_log_error_layout)");
this.f96346g = k1.k((ViewStub) findViewById2, new j(this));
View findViewById3 = view.findViewById(R.id.access_log_empty_view);
q.e(findViewById3, "view.findViewById(R.id.access_log_empty_view)");
this.f96348i = findViewById3;
View findViewById4 = view.findViewById(R.id.access_log_recycler_view);
q.e(findViewById4, "view.findViewById(R.id.access_log_recycler_view)");
this.f96347h = (RecyclerView) findViewById4;
Context requireContext2 = requireContext();
q.e(requireContext2, "requireContext()");
this.f96349j = new e93.c(requireContext2);
RecyclerView recyclerView = this.f96347h;
if (recyclerView != null) {
recyclerView.setLayoutManager(new LinearLayoutManager(requireContext()));
RecyclerView recyclerView2 = this.f96347h;
if (recyclerView2 != null) {
e93.c cVar = this.f96349j;
if (cVar != null) {
recyclerView2.setAdapter(cVar);
TextView textView = (TextView) view.findViewById(R.id.access_log_link_about);
Context requireContext3 = requireContext();
q.e(requireContext3, "requireContext()");
String str = ((fk0.c) rb.a.d(requireContext3, fk0.c.f72299y0)).a().f88074d;
if (str == null) {
str = "";
}
SettingsBeaconUserLogFragment$createAboutLink$aboutLinkSpan$1 settingsBeaconUserLogFragment$createAboutLink$aboutLinkSpan$1 = new SettingsBeaconUserLogFragment$createAboutLink$aboutLinkSpan$1(r.r(str, "jp", true) ? "https://guide.line.me/ja/experts/line-beacon.html" : "https://help.line.me/line/android/?contentId=50001492");
SpannableString spannableString = new SpannableString(getString(R.string.beacon_accesslog_link_about));
spannableString.setSpan(settingsBeaconUserLogFragment$createAboutLink$aboutLinkSpan$1, 0, spannableString.length(), 17);
textView.setText(spannableString);
textView.setMovementMethod(LinkMovementMethod.getInstance());
Y4().f67506f.observe(getViewLifecycleOwner(), new e93.i(this, 0));
a Y4 = Y4();
Objects.requireNonNull(Y4);
g.d(Y4, null, 0, new e93.b(Y4, null), 3, null);
return;
}
q.l("adapter");
throw null;
}
q.l("recyclerView");
throw null;
}
q.l("recyclerView");
throw null;
}
}