LINE.apk(点击下载) / AlbumFragment.java


package com.linecorp.line.timeline.group.note.fragment;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.n;
import com.linecorp.line.album.data.model.AlbumRequest;
import dm3.l;
import em3.q;
import em3.s;
import fa3.i;
import ha3.j0;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Objects;
import jp.naver.line.android.R;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.Metadata;
import kotlin.Unit;
import po1.a;
import tw.c;

@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 = {"Lcom/linecorp/line/timeline/group/note/fragment/AlbumFragment;", "Lcom/linecorp/line/timeline/group/note/fragment/AbstractLazyLoadFragment;", "<init>", "()V", "app_productionRelease"}, k = 1, mv = {1, 6, 0})
public final class AlbumFragment extends AbstractLazyLoadFragment {

    /* renamed from: j  reason: collision with root package name */
    public static final /* synthetic */ int f45423j = 0;

    /* renamed from: h  reason: collision with root package name */
    public final Lazy f45424h = LazyKt.lazy(new a(this));

    /* renamed from: i  reason: collision with root package name */
    public uw.b f45425i;

    public static final class a extends s implements dm3.a<po1.a> {

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ AlbumFragment f45426b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public a(AlbumFragment albumFragment) {
            super(0);
            this.f45426b = albumFragment;
        }

        /* Return type fixed from 'java.lang.Object' to match base method */
        @Override // dm3.a
        public po1.a invoke() {
            Bundle arguments = this.f45426b.getArguments();
            Serializable serializable = arguments != null ? arguments.getSerializable("group_model") : null;
            if (serializable != null) {
                return (po1.a) serializable;
            }
            throw new IllegalStateException("Required value was null.".toString());
        }
    }

    public static final class b extends s implements l<c, Unit> {

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ AlbumFragment f45427b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public b(AlbumFragment albumFragment) {
            super(1);
            this.f45427b = albumFragment;
        }

        /* Return type fixed from 'java.lang.Object' to match base method */
        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // dm3.l
        public Unit invoke(c cVar) {
            c cVar2 = cVar;
            q.f(cVar2, "screen");
            if (this.f45427b.getUserVisibleHint()) {
                i.q(i.f71587p.d(), cVar2.f151896a, null, null, cVar2.f151897b, null, 22);
                AlbumFragment albumFragment = this.f45427b;
                int i14 = AlbumFragment.f45423j;
                Objects.requireNonNull(albumFragment);
                iw.c cVar3 = cVar2.f151898c;
                if (cVar3 != null) {
                    Context requireContext = albumFragment.requireContext();
                    q.e(requireContext, "this@AlbumFragment.requireContext()");
                    fk0.c cVar4 = (fk0.c) rb.a.d(requireContext, fk0.c.f72299y0);
                    q.f(cVar4, "myProfileManager");
                    HashMap hashMap = new HashMap();
                    String str = cVar4.a().f88074d;
                    if (str != null) {
                        hashMap.put("country", str);
                    }
                    hashMap.put("screen", cVar3.d());
                    j0.l().i("line.album.view", hashMap);
                }
            }
            return Unit.INSTANCE;
        }
    }

    @Override // com.linecorp.line.timeline.group.note.fragment.AbstractLazyLoadFragment
    public void Y4() {
        uw.b bVar = this.f45425i;
        if (bVar != null) {
            bVar.a();
        } else {
            q.l("presenter");
            throw null;
        }
    }

    public final po1.a a5() {
        return (po1.a) this.f45424h.getValue();
    }

    @Override // androidx.fragment.app.Fragment
    public void onActivityResult(int i14, int i15, Intent intent) {
        super.onActivityResult(i14, i15, intent);
        uw.b bVar = this.f45425i;
        if (bVar != null) {
            bVar.onActivityResult(i14, i15, intent);
        } else {
            q.l("presenter");
            throw null;
        }
    }

    @Override // no1.f
    public boolean onBackPressed() {
        uw.b bVar = this.f45425i;
        if (bVar == null) {
            return false;
        }
        if (bVar != null) {
            return bVar.onBackPressed();
        }
        q.l("presenter");
        throw null;
    }

    @Override // androidx.fragment.app.Fragment
    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        q.f(layoutInflater, "inflater");
        return layoutInflater.inflate(R.layout.fragment_album, viewGroup, false);
    }

    @Override // androidx.fragment.app.Fragment, com.linecorp.line.timeline.group.note.fragment.AbstractLazyLoadFragment
    public void onViewCreated(View view, Bundle bundle) {
        q.f(view, "view");
        super.onViewCreated(view, bundle);
        n activity = getActivity();
        if (activity != null) {
            String a14 = a5().a();
            boolean z14 = a5().f128415d;
            tw.a aVar = tw.a.LIST;
            po1.a a54 = a5();
            a.b bVar = a54 instanceof a.b ? (a.b) a54 : null;
            this.f45425i = ((sw.b) rb.a.d(activity, sw.b.H2)).l(activity, new AlbumRequest(a14, z14, null, null, aVar, bVar != null ? bVar.f128420g : null, null, 76, null), R.id.container_layout, new b(this));
        }
    }

    @Override // no1.f
    public void q3() {
        uw.b bVar = this.f45425i;
        if (bVar != null) {
            bVar.b();
        } else {
            q.l("presenter");
            throw null;
        }
    }
}