Merge "Hook up wake-lock-screen with plugin structure"
This commit is contained in:
@@ -72,7 +72,8 @@ public class AmbientDisplayConfiguration {
|
||||
}
|
||||
|
||||
public boolean wakeLockScreenGestureAvailable() {
|
||||
return !TextUtils.isEmpty(wakeLockScreenSensorType());
|
||||
return mContext.getResources()
|
||||
.getBoolean(R.bool.config_dozeWakeLockScreenSensorAvailable);
|
||||
}
|
||||
|
||||
public boolean wakeScreenGestureEnabled(int user) {
|
||||
@@ -92,10 +93,6 @@ public class AmbientDisplayConfiguration {
|
||||
return mContext.getResources().getString(R.string.config_dozeLongPressSensorType);
|
||||
}
|
||||
|
||||
public String wakeLockScreenSensorType() {
|
||||
return mContext.getResources().getString(R.string.config_dozeWakeLockScreenSensorType);
|
||||
}
|
||||
|
||||
public String wakeScreenSensorType() {
|
||||
return mContext.getResources().getString(R.string.config_dozeWakeScreenSensorType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user