举报通知开发 完成

This commit is contained in:
老皮 2024-09-29 13:19:44 +08:00
parent 98343a2177
commit 9475acd585
5 changed files with 25 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

View File

@ -63,6 +63,12 @@ public class ReportSecondActivity extends AbsActivity implements View.OnClickLis
cancel_1 = findViewById(R.id.cancel_1);
cancel_2 = findViewById(R.id.cancel_2);
cancel_3 = findViewById(R.id.cancel_3);
findViewById(R.id.btn_back).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
imageUtilInit();

View File

@ -65,7 +65,6 @@ public class SystemMessageActivity extends AbsActivity {
// if ("".equals(nowUid)) {
mSystemMessageViewHolder = new SystemMessageViewHolder(mContext, (ViewGroup) findViewById(R.id.root), SystemMessageActivity.this);
mSystemMessageViewHolder.addToParent();
mSystemMessageViewHolder.loadData();
// } else {
// mSystemMessageViewHolder = new SystemMessageViewHolder(mContext, (ViewGroup) findViewById(R.id.root));
// mSystemMessageViewHolder.addToParent();
@ -120,6 +119,15 @@ public class SystemMessageActivity extends AbsActivity {
}
}
@Override
protected void onResume() {
super.onResume();
if (mSystemMessageViewHolder != null){
mSystemMessageViewHolder.loadData();
}
}
@Override
protected void onDestroy() {
if (mSystemMessageViewHolder != null) {

View File

@ -382,6 +382,14 @@ public class SystemMessageViewHolder extends AbsViewHolder implements View.OnCli
});
}
@Override
public void onResume() {
super.onResume();
if (mAdapter != null) {
mRefreshView.initData();
}
}
//非单聊列表适配
private void setSysApt() {
if (SystemMessageActivity.type.equals("1") || SystemMessageActivity.type.equals("4")) {

View File

@ -8,6 +8,7 @@
<TextView
android:layout_marginTop="36dp"
android:id="@+id/titleView"
android:layout_width="wrap_content"
android:layout_height="40dp"
@ -25,7 +26,7 @@
android:layout_width="40dp"
android:layout_height="40dp"
android:padding="9dp"
android:src="@mipmap/icon_back"
android:src="@mipmap/icon_black_back"
app:layout_constraintTop_toTopOf="@id/titleView"
app:layout_constraintBottom_toBottomOf="@id/titleView"
app:layout_constraintStart_toStartOf="parent"