正在查看: TruCred v1.1.3 应用的 MessageCenterActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: TruCred v1.1.3 应用的 MessageCenterActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.veloz.app.ui.mine;
import android.view.View;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.chad.library.adapter4.BaseQuickAdapter;
import com.veloz.app.R$layout;
import com.veloz.app.adapter.MessageCenterAdapter;
import com.veloz.app.adapter.decoration.XDividerItemDecoration;
import com.veloz.app.databinding.MessageCenterActivityBinding;
import com.veloz.app.entity.MessageCenterTitleItemEntity;
import com.veloz.app.my.MyActivity;
import com.veloz.app.utils.SensorsHelper;
import java.util.ArrayList;
import java.util.List;
public class MessageCenterActivity extends MyActivity<MessageCenterActivityBinding, MessageCenterActivityViewModel> {
public List e = new ArrayList();
public MessageCenterAdapter f;
public void v(View view) {
finish();
}
@Override
public void initData() {
MessageCenterTitleItemEntity messageCenterTitleItemEntity = new MessageCenterTitleItemEntity();
messageCenterTitleItemEntity.setTitle("Actualzaciones");
messageCenterTitleItemEntity.setSubTitle("Nombre del padre");
messageCenterTitleItemEntity.setType(1);
MessageCenterTitleItemEntity messageCenterTitleItemEntity2 = new MessageCenterTitleItemEntity();
messageCenterTitleItemEntity2.setTitle("Actualzaciones");
messageCenterTitleItemEntity2.setSubTitle("Nombre del padre");
messageCenterTitleItemEntity2.setType(2);
this.e.add(messageCenterTitleItemEntity);
this.e.add(messageCenterTitleItemEntity2);
this.f = new MessageCenterAdapter(this.e);
((MessageCenterActivityBinding) this.bind).a.setLayoutManager(new LinearLayoutManager(this));
((MessageCenterActivityBinding) this.bind).a.addItemDecoration(new XDividerItemDecoration(12, 0));
((MessageCenterActivityBinding) this.bind).a.setAdapter(this.f);
}
@Override
public void m() {
((MessageCenterActivityBinding) this.bind).b.h(new View.OnClickListener() {
@Override
public final void onClick(View view) {
MessageCenterActivity.this.v(view);
}
});
this.f.B(new BaseQuickAdapter.OnItemClickListener() {
public final void a(BaseQuickAdapter baseQuickAdapter, View view, int i) {
MessageCenterActivity.this.w(baseQuickAdapter, view, i);
}
});
}
@Override
public int myView() {
return R$layout.message_center_activity;
}
@Override
public void onDestroy() {
super.onDestroy();
SensorsHelper.g("message");
}
@Override
public void p() {
}
public final void w(BaseQuickAdapter baseQuickAdapter, View view, int i) {
List n2 = baseQuickAdapter.n();
if (n2.isEmpty()) {
return;
}
MessageCenterTitleItemEntity messageCenterTitleItemEntity = (MessageCenterTitleItemEntity) n2.get(i);
if (messageCenterTitleItemEntity.getType() == 1) {
SensorsHelper.c("message", "SystemMessage");
} else if (messageCenterTitleItemEntity.getType() == 2) {
SensorsHelper.c("message", "UserMessage");
}
startActivity(MessageCenterDetailActivity.class).with("msgType", Integer.valueOf(messageCenterTitleItemEntity.getType())).go();
}
@Override
public void o(MessageCenterActivityBinding messageCenterActivityBinding, MessageCenterActivityViewModel messageCenterActivityViewModel) {
super.o(messageCenterActivityBinding, messageCenterActivityViewModel);
SensorsHelper.j("message");
messageCenterActivityBinding.a(messageCenterActivityViewModel);
}
}