Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca219740 authored by David van Tonder's avatar David van Tonder Committed by Gerrit Code Review
Browse files

Merge "Bugfix: Dock events can have state greater than 1" into jellybean

parents 6855c96e a1dd3f8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ class WiredAccessoryObserver extends UEventObserver {
                // The choice is made in the GalaxyS2Settings.apk
                // device/samsung/i9100/DeviceSettings/src/com/cyanogenmod/settings/device/DockFragmentActivity.java
                // This sends an Intent to this class
                if ((!dockAudioEnabled) && (state == 1)) {
                if ((!dockAudioEnabled) && (state > 0)) {
                    Slog.e(TAG, "Ignoring dock event as Audio routing disabled " + event);
                    return;
                }