Fix missedChat bad display if count >= 100
This commit is contained in:
parent
a72ffc3c3a
commit
4f03ff49af
1 changed files with 5 additions and 0 deletions
|
@ -479,6 +479,11 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
|
|||
public void run() {
|
||||
if (missedChatCount > 0) {
|
||||
missedChats.setText(missedChatCount + "");
|
||||
if (missedChatCount > 99) {
|
||||
missedChats.setTextSize(12);
|
||||
} else {
|
||||
missedChats.setTextSize(20);
|
||||
}
|
||||
missedChats.setVisibility(View.VISIBLE);
|
||||
if (!getResources().getBoolean(R.bool.disable_animations)) {
|
||||
missedChats.startAnimation(AnimationUtils.loadAnimation(LinphoneActivity.this, R.anim.bounce));
|
||||
|
|
Loading…
Reference in a new issue