Update ShortcutBadger to version 1.1.4
This commit is contained in:
parent
46be514b4d
commit
1d458e8ab3
|
@ -44,7 +44,7 @@ dependencies {
|
||||||
compile 'com.google.zxing:android-integration:3.2.1'
|
compile 'com.google.zxing:android-integration:3.2.1'
|
||||||
compile 'de.measite.minidns:minidns:0.1.7'
|
compile 'de.measite.minidns:minidns:0.1.7'
|
||||||
compile 'de.timroes.android:EnhancedListView:0.3.4'
|
compile 'de.timroes.android:EnhancedListView:0.3.4'
|
||||||
compile 'me.leolin:ShortcutBadger:1.1.3@aar'
|
compile 'me.leolin:ShortcutBadger:1.1.4@aar'
|
||||||
compile 'com.kyleduo.switchbutton:library:1.2.8'
|
compile 'com.kyleduo.switchbutton:library:1.2.8'
|
||||||
compile 'org.whispersystems:axolotl-android:1.3.4'
|
compile 'org.whispersystems:axolotl-android:1.3.4'
|
||||||
compile 'com.makeramen:roundedimageview:2.2.0'
|
compile 'com.makeramen:roundedimageview:2.2.0'
|
||||||
|
|
|
@ -2809,9 +2809,9 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
||||||
if (unreadCount != count) {
|
if (unreadCount != count) {
|
||||||
Log.d(Config.LOGTAG, "update unread count to " + count);
|
Log.d(Config.LOGTAG, "update unread count to " + count);
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
ShortcutBadger.with(getApplicationContext()).count(count);
|
ShortcutBadger.applyCount(getApplicationContext(), count);
|
||||||
} else {
|
} else {
|
||||||
ShortcutBadger.with(getApplicationContext()).remove();
|
ShortcutBadger.removeCount(getApplicationContext());
|
||||||
}
|
}
|
||||||
unreadCount = count;
|
unreadCount = count;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue