Fixing iOS unread counts when over 1000.

This commit is contained in:
Samuel Clay 2015-09-28 15:32:24 -07:00
parent 9de2ee9f97
commit 314c97243f
2 changed files with 3 additions and 3 deletions

View file

@ -174,8 +174,8 @@ const int COUNT_HEIGHT = 15;
}
- (void)calculateOffsets:(int)ps nt:(int)nt {
psWidth = ps == 0 ? 0 : ps < 10 ? 14 : ps < 100 ? 22 : 28;
ntWidth = nt == 0 ? 0 : nt < 10 ? 14 : nt < 100 ? 22 : 28;
psWidth = ps == 0 ? 0 : ps < 10 ? 14 : ps < 100 ? 22 : ps < 1000 ? 28 : ps < 10000 ? 34 : 40;
ntWidth = nt == 0 ? 0 : nt < 10 ? 14 : nt < 100 ? 22 : nt < 1000 ? 28 : nt < 10000 ? 34 : 40;
psPadding = ps == 0 ? 0 : 2;
ntPadding = nt == 0 ? 0 : 2;

View file

@ -58,7 +58,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>51</string>
<string>52</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>