导航菜单

页面标题

页面副标题

Hopscotch v9.7.2 - MomentsCustomerLikeActivity.java 源代码

正在查看: Hopscotch v9.7.2 应用的 MomentsCustomerLikeActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package in.hopscotch.android.activity;

import android.os.Bundle;
import android.text.SpannableString;
import android.view.MenuItem;
import androidx.appcompat.app.k;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import in.hopscotch.android.api.factory.MomentsApiFactory;
import in.hopscotch.android.api.model.MomentsPhotoLikeInfos;
import in.hopscotch.android.databinding.ec;
import java.util.List;

public class MomentsCustomerLikeActivity extends androidx.appcompat.app.i implements in.hopscotch.android.interfaces.h {
    private in.hopscotch.android.adapter.t momentCustomerAdapter;
    private in.hopscotch.android.interfaces.h momentCustomerResponseListener;
    private int momentPhotoId;

    static {
        k.c cVar = androidx.appcompat.app.k.a;
        androidx.appcompat.widget.j1.b();
    }

    public final void n0(List<MomentsPhotoLikeInfos> list) {
        this.momentCustomerAdapter.O(list);
        this.momentCustomerAdapter.p();
    }

    public final void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.n*/.onCreate(bundle);
        in.hopscotch.android.util.e0.b().h();
        com.google.firebase.crashlytics.c.a().d("ACTIVITY_NAME", getClass().getName());
        ec ecVar = (ec) androidx.databinding.g.h(this, 2131558879);
        if (getIntent() != null) {
            this.momentPhotoId = getIntent().getIntExtra("MOMENT_PHOTO_ID", -1);
        }
        this.momentCustomerResponseListener = this;
        setSupportActionBar(ecVar.e);
        in.hopscotch.android.viewmodel.moments.d dVar = new in.hopscotch.android.viewmodel.moments.d(this, this.momentCustomerResponseListener);
        MomentsApiFactory.getInstance().getCustomerWhoLiked(this.momentPhotoId, new in.hopscotch.android.viewmodel.moments.c(dVar));
        if (getSupportActionBar() != null) {
            SpannableString spannableString = new SpannableString(getString(2132018366));
            spannableString.setSpan(new in.hopscotch.android.util.t0(this, getString(in.hopscotch.android.components.s.averta_semibold)), 0, spannableString.length(), 33);
            getSupportActionBar().F(spannableString);
        }
        int b = androidx.core.content.a.b(this, in.hopscotch.android.components.m.blackish_gray);
        Toolbar toolbar = ecVar.e;
        toolbar.setTitleTextColor(b);
        toolbar.setBackgroundColor(androidx.core.content.a.b(this, 2131100774));
        toolbar.setNavigationIcon(in.hopscotch.android.components.o.ic_close);
        in.hopscotch.android.adapter.t tVar = new in.hopscotch.android.adapter.t(this);
        this.momentCustomerAdapter = tVar;
        RecyclerView recyclerView = ecVar.d;
        recyclerView.setAdapter(tVar);
        recyclerView.setHasFixedSize(false);
        recyclerView.setLayoutManager(new LinearLayoutManager(this, 1, false));
        in.hopscotch.android.analytics.c.m().B("Moment likes");
    }

    public final boolean onOptionsItemSelected(MenuItem menuItem) {
        if (menuItem.getItemId() == 16908332) {
            finish();
        }
        return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
    }
}