Android Question Problem with ShortcutBadger

polo

Member
Licensed User
Longtime User
Hello everyone,
I used the ShortcutBadger library, it works well on Android 6.0 but not on Android 7.0 on Samsung phones.
When changing the number with applyCount () the badge of the icon is not changed.
A solution ?
Thanks for your help.
 

klaus

Expert
Licensed User
Longtime User
Does not work here:
Samsung Galaxy S6, Android 7.0
TargetSDK 25 and TargetSDK 27
I tested this program ShortcutBadger Check Tool suggested in the Github page of the original library, which works OK.



I tested BadgeTest also with one of my icons.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Samsung Galaxy S6, Android 7.0
S7 EDGE here (working)
in the Github page of the original library
i saw it is a newer version than the one i wrapped... I lost the source of the lib a few months ago.

I rewrote it. Check again with V1.5 (based on the newest release from Github).

PD: Seems that there are now more Launcher supported.
 

Attachments

  • ShortcutBadgerV1.5.zip
    27.2 KB · Views: 344
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I think i used a AbsObjectWrapper<object> in the past...

I now added the badger as private variable which is set when you initialize it without using AbsObjectWrapper

Additionally i added a property to indicate the object is initialized...
 

Attachments

  • ShortcutBadgerV1.51.zip
    27.3 KB · Views: 352
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…