取消我的小红点

This commit is contained in:
ningwenqiang 2024-11-05 13:58:00 +08:00
parent 61821aee63
commit ee4926719f
2 changed files with 11 additions and 11 deletions

View File

@ -702,11 +702,11 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
MainHttpUtil.getBaseInfo(new CommonCallback<UserBean>() {
@Override
public void callback(UserBean bean) {
if (bean.getUserInfoComplete() == 0) {
v_table_redpoint_me.setVisibility(View.VISIBLE);
} else {
v_table_redpoint_me.setVisibility(View.GONE);
}
// if (bean.getUserInfoComplete() == 0) {
// v_table_redpoint_me.setVisibility(View.VISIBLE);
// } else {
// v_table_redpoint_me.setVisibility(View.GONE);
// }
}
});
@ -1570,11 +1570,11 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
//红点(我的)
@Subscribe(threadMode = ThreadMode.MAIN)
public void onCompleteInformationEvent(CompleteInformationEvent event) {
if (event.isCompleteInformation()) {
v_table_redpoint_me.setVisibility(View.VISIBLE);
} else {
v_table_redpoint_me.setVisibility(View.GONE);
}
// if (event.isCompleteInformation()) {
// v_table_redpoint_me.setVisibility(View.VISIBLE);
// } else {
// v_table_redpoint_me.setVisibility(View.GONE);
// }
}
/**

View File

@ -155,7 +155,7 @@
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/btn_phone"
app:layout_constraintEnd_toEndOf="@+id/btn_phone"
app:layout_constraintHorizontal_bias="0.46"
app:layout_constraintHorizontal_bias="0.42"
app:layout_constraintStart_toEndOf="@+id/accountImg"
app:layout_constraintTop_toTopOf="@+id/btn_phone" />