Fixed retrieving wrong handler for applicationNotificationsObserver (#319)

This commit is contained in:
Martijn Brekhof 2016-12-02 12:04:17 +01:00 committed by Synced Synapse
parent 03cd43bdac
commit d993126c7e
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ public class HostConnectionObserver
* Unregisters a previously registered observer
* @param observer Observer to unregister
*/
public void unregisterApplicationObserver(PlayerEventsObserver observer) {
public void unregisterApplicationObserver(ApplicationEventsObserver observer) {
applicationEventsObservers.remove(observer);
LogUtils.LOGD(TAG, "Unregistering application observer " + observer.getClass().getSimpleName() +

View File

@ -847,7 +847,7 @@ public class HostConnection {
new Application.OnVolumeChanged(params);
for (final ApplicationNotificationsObserver observer :
applicationNotificationsObservers.keySet()) {
Handler handler = inputNotificationsObservers.get(observer);
Handler handler = applicationNotificationsObservers.get(observer);
handler.post(new Runnable() {
@Override
public void run() {