导航菜单

页面标题

页面副标题

bbinstant v6.24.0 - SummaryActivity.java 源代码

正在查看: bbinstant v6.24.0 应用的 SummaryActivity.java JAVA 源代码文件

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


package com.bigbasket.bbinstant.ui.order.summary;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.adjetter.kapchatsdk.R;
import com.bigbasket.bbinstant.ui.BaseActivity;
import com.bigbasket.bbinstant.ui.order.summary.SummaryAdapter;
import java.util.List;

public class SummaryActivity extends BaseActivity implements m {
    private RecyclerView mRecyclerView;
    private o mSummaryPresenter;
    private SummaryAdapter mSummaryAdapter = new SummaryAdapter();
    private final SummaryAdapter.f listener = new a();

    class a implements SummaryAdapter.f {
        a() {
        }

        @Override
        public void onReportTap() {
            SummaryActivity.this.mSummaryPresenter.onTapReport();
        }
    }

    public void lambda$onCreate$0(View view) {
        onBackPressed();
    }

    @Override
    public Context getContext() {
        return this;
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558452);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
        if (getSupportActionBar() != null) {
            getSupportActionBar().setDisplayHomeAsUpEnabled(true);
            getSupportActionBar().setDisplayShowTitleEnabled(true);
            toolbar.setNavigationOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    SummaryActivity.this.lambda$onCreate$0(view);
                }
            });
        }
        setTitle(getResources().getString(2131886479));
        this.mSummaryPresenter = new o(this);
        RecyclerView recyclerView = (RecyclerView) findViewById(2131362454);
        this.mRecyclerView = recyclerView;
        recyclerView.setItemAnimator(new DefaultItemAnimator());
        this.mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
        this.mRecyclerView.setAdapter(this.mSummaryAdapter);
        this.mSummaryAdapter.setTapListener(this.listener);
    }

    @Override
    public void onUpdate(List<n> list) {
        this.mSummaryAdapter.setItems(list);
    }

    @Override
    public void setTitle(CharSequence charSequence) {
        super.setTitle("");
        ((TextView) findViewById(2131362571)).setText(charSequence);
    }
}