Hi, I'm using a BT media button device to provide remote control of my app by detecting media button (key) presses with ActivityOnKey event. This works well in regular release mode. However when compiled in obfuscated mode, the log output is "activity raiseEvent returned null" when any media button is pressed. This also occurs if I press volume up or down on the phone. Long-pressing the media play/pause button stops my activity and offers to turn on Google Assistant, which would be very undesirable on many levels.
I can't figure out why obfuscation would affect the key pressed processing. Perhaps it should be renamed Activity_OnKey, but I have no idea how to do this since it isn't my library.
I can't figure out why obfuscation would affect the key pressed processing. Perhaps it should be renamed Activity_OnKey, but I have no idea how to do this since it isn't my library.