Loading policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +5 −5 Original line number Diff line number Diff line Loading @@ -2217,11 +2217,11 @@ public class PhoneWindowManager implements WindowManagerPolicy { } void initializeHdmiState() { boolean plugged = false; // watch for HDMI plug messages if the hdmi switch exists if (new File("/sys/devices/virtual/switch/hdmi/state").exists()) { mHDMIObserver.startObserving("DEVPATH=/devices/virtual/switch/hdmi"); boolean plugged = false; final String filename = "/sys/class/switch/hdmi/state"; FileReader reader = null; try { Loading @@ -2243,12 +2243,12 @@ public class PhoneWindowManager implements WindowManagerPolicy { } } } } // This dance forces the code in setHdmiPlugged to run. // Always do this so the sticky intent is stuck (to false) if there is no hdmi. mHdmiPlugged = !plugged; setHdmiPlugged(!mHdmiPlugged); } } /** * @return Whether music is being played right now. Loading Loading
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +5 −5 Original line number Diff line number Diff line Loading @@ -2217,11 +2217,11 @@ public class PhoneWindowManager implements WindowManagerPolicy { } void initializeHdmiState() { boolean plugged = false; // watch for HDMI plug messages if the hdmi switch exists if (new File("/sys/devices/virtual/switch/hdmi/state").exists()) { mHDMIObserver.startObserving("DEVPATH=/devices/virtual/switch/hdmi"); boolean plugged = false; final String filename = "/sys/class/switch/hdmi/state"; FileReader reader = null; try { Loading @@ -2243,12 +2243,12 @@ public class PhoneWindowManager implements WindowManagerPolicy { } } } } // This dance forces the code in setHdmiPlugged to run. // Always do this so the sticky intent is stuck (to false) if there is no hdmi. mHdmiPlugged = !plugged; setHdmiPlugged(!mHdmiPlugged); } } /** * @return Whether music is being played right now. Loading