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

Commit 5924871b authored by mrpaulmanley's avatar mrpaulmanley
Browse files

reversed headset state codes for headsets with mic and without

Change-Id: I7339e589fd8df4dd3e24fe4c35e0285d806627a5
parent e080c01b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -41,8 +41,8 @@ class HeadsetObserver extends UEventObserver {
    private static final String HEADSET_STATE_PATH = "/sys/class/switch/h2w/state";
    private static final String HEADSET_NAME_PATH = "/sys/class/switch/h2w/name";

    private static final int BIT_HEADSET = (1 << 0);
    private static final int BIT_HEADSET_NO_MIC = (1 << 1);
    private static final int BIT_HEADSET = (1 << 1);
    private static final int BIT_HEADSET_NO_MIC = (1 << 0);
    private static final int SUPPORTED_HEADSETS = (BIT_HEADSET|BIT_HEADSET_NO_MIC);
    private static final int HEADSETS_WITH_MIC = BIT_HEADSET;