Merge "Settings: Enable laser sensor toggle for user builds"

This commit is contained in:
TreeHugger Robot
2018-01-10 10:26:42 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 6 deletions

View File

@@ -57,10 +57,7 @@ public class CameraLaserSensorPreferenceController extends
@Override
public boolean isAvailable() {
final String buildType = SystemProperties.get(BUILD_TYPE);
return mContext.getResources().getBoolean(R.bool.config_show_camera_laser_sensor) &&
(TextUtils.equals(USERDEBUG_BUILD, buildType) || TextUtils.equals(ENG_BUILD,
buildType));
return mContext.getResources().getBoolean(R.bool.config_show_camera_laser_sensor);
}
@Override