ShortcutBadger icon indicating copy to clipboard operation
ShortcutBadger copied to clipboard

Make sure isBadgeCounterSupported returns false on Samsung on Android 8+

Open eirikwah opened this issue 6 years ago • 6 comments

The fix is in SamsungHomeBadger, but: Note that the DefaultBadger also must check for Samsung on Android 8, or it will be used on those devices.

I have tried to do this fix without touching DefaultBadger, but it seems impossible with the current design of the API.

PS: The fix would still be technically valid only with the changes in DefaultBadger and not changing SamsungHomeBadger at all. However, I think the code changes in SamsungHomeBadger should be there anyway to better show that ShortcutBadger is not supported on Samsung devices running Android 8+.

This fixes #266

Also included:

  • Update test app to be able to test isBadgeCounterSupported

eirikwah avatar Feb 28 '18 08:02 eirikwah

Please do not merge this without more testing. This PR is blocking ShortcutBadger in all Samsungs 8 and above right? I think this behavior is the responsibility of the launcher. Evie for example has already added support for O (I will check later).

aMarCruz avatar Jul 05 '18 17:07 aMarCruz

This PR is blocking ShortcutBadger in all Samsungs 8 and above right?

This PR does not block ShortcutBadger on Samsung 8, there is nothing to block (it does not work, or at least did not work at the time this PR was written). SO this is a fix for the consitency of the API: Do not state that Samsung Galaxy 8 on Oreo is supported, when API calls have no effect on any badges.

eirikwah avatar Jul 06 '18 06:07 eirikwah

@eirikwah please fix the conflict, thank you!

leolin310148 avatar Oct 03 '18 02:10 leolin310148

@eirikwah please fix the conflict, thank you!

@leolin310148 Done now. PS: I don't have the development environment set up correctly on my PC anymore, so I did not have the chance to easily test this again after the conflict resolution. However, it was fairly straight-forward.

eirikwah avatar Oct 03 '18 20:10 eirikwah

Is this going to be merged anytime soon?

geraintwhite avatar Feb 25 '19 16:02 geraintwhite

This caused problems when tested on S8 with Android 9. The badge stopped updating.

grebulon avatar Apr 16 '19 09:04 grebulon