1、修复消息条数红点显示过多的问题
This commit is contained in:
parent
0b62d4ddc4
commit
745702e36c
@ -130,7 +130,11 @@ public class MainMeAdapter extends RecyclerView.Adapter<MainMeAdapter.Vh> {
|
||||
mName.setText(bean.getName());
|
||||
if (MainActivity.messageNumber > 0 && bean.getId() == 101){
|
||||
message_redpoint.setVisibility(View.VISIBLE);
|
||||
message_redpoint.setText(String.valueOf(MainActivity.messageNumber));
|
||||
if (MainActivity.messageNumber > 99){
|
||||
message_redpoint.setText("99+");
|
||||
}else {
|
||||
message_redpoint.setText(String.valueOf(MainActivity.messageNumber));
|
||||
}
|
||||
}else {
|
||||
message_redpoint.setVisibility(View.GONE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user