Fix missedChat bad display if count >= 100

This commit is contained in:
Sylvain Berfini 2012-07-26 16:50:16 +02:00
parent a72ffc3c3a
commit 4f03ff49af

View file

@ -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));