libandroidjni
libandroidjni copied to clipboard
PlaybackState: Enable Actions
We should properly identify the actions of the media session as well, cause SetActions needs them.
You also have to enable these constants in the header file
You also have to enable these constants in the header file
Oh indeed my bad, didn’t think about that. Thx for the catch!! edit: Do we really need to, though? Seems they are just defined in the cpp file to avoid clashes with some core macros? See: https://github.com/xbmc/libandroidjni/blob/e9ed53277aca16ce9089dbc69acc1a151f73aeea/src/PlaybackState.h#L31
In order to be used from other classes they need to be in the header.
There should be no conflict if used in this way: CJNIPlaybackState::ACTION_PLAY
You also have to enable these constants in the header file
Thanks git add for the win ;-)
Let's keep it open for a bit - I want to fix the other bug for the MediaSession first and time is very limited.