OSDN Git Service

Merge "Revert "AOD: Refactor always on configuration""
authorAdrian Roos <roosa@google.com>
Tue, 7 Mar 2017 20:53:21 +0000 (20:53 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Tue, 7 Mar 2017 20:53:25 +0000 (20:53 +0000)
1  2 
packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java

@@@ -123,9 -125,9 +125,9 @@@ public class DozeParameters 
      }
  
      public boolean getSensorsWakeUpFully() {
-         return mAmbientDisplayConfiguration.alwaysOnAvailable()
+         return ALWAYS_ON_AVAILABLE
                  && Settings.Secure.getIntForUser(mContext.getContentResolver(),
 -                DOZE_SENSORS_WAKE_UP_FULLY, 0, UserHandle.USER_CURRENT) != 0;
 +                DOZE_SENSORS_WAKE_UP_FULLY, 1, UserHandle.USER_CURRENT) != 0;
      }
  
      private boolean getBoolean(String propName, int resId) {