Eymir / salat10

Automatically exported from code.google.com/p/salat10
0 stars 0 forks source link

The headless app takes control of the volume down key #114

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Just have the headless Salat 10 app running
2. Pressing the VolumeDown key does nothing. When trying the volume up key you 
get the regular 'Media Volume' dialog showing the volume being adjusted 
downward.
3. Now kill the headless app using the device monitor and try to use the volume 
down key you will notice that it works as expected.

What is the expected output? What do you see instead?
I expect when Salat is running headless it should not interfere with volume 
down key and the volume down key works as normal.

What version of the product are you using? On what operating system?
Salat10 3.4.0.0 
BB10 10.2.1.x

Please provide any additional information below.
I am a BB10 developer so I know the source of the problem. You are using a 
MediaKeyWatcher object to listen to volumeDown key preses. The problem with 
this object is that it takes control of the key you are monitoring even when 
the app is thumbnailed or running headless. Probably the fix would be to only 
create the MediaKeyWatcher while playing the athan sound and destroy it when 
completed. 

Original issue reported on code.google.com by abouz...@gmail.com on 3 Jun 2014 at 10:34

GoogleCodeExporter commented 8 years ago
As'salaamu alaykum wa rahmatullahi wabarakathu.

JazakAllahu khair for filing this bug. Can you completely uninstall the app and 
then reinstall it? Please tell us if that fixes it. This symptom usually 
happens when there is a corrupt update.

Original comment by canadai...@gmail.com on 8 Jun 2014 at 3:20

GoogleCodeExporter commented 8 years ago
Duplicate bug that was fixed.

Original comment by canadai...@gmail.com on 17 Aug 2014 at 8:16