Merge "Hook up wake-lock-screen with plugin structure"

This commit is contained in:
Lucas Dupin
2018-10-10 23:42:52 +00:00
committed by Android (Google) Code Review
5 changed files with 62 additions and 13 deletions

View File

@@ -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);
}