lineage-sdk: fix picture adjustment from depending on color balance

*) Fixes picture adjustment settings on a device that doesn't
   support color balance.

*) This was a day one bug.  Likely a copy and paste.

Change-Id: Idf3b0ac811906bbed8696a9a3744d0aaaa5140e3
This commit is contained in:
Sam Mortimer
2018-01-05 19:23:45 -08:00
parent 26a3d1efbf
commit e861b1d7f1

View File

@@ -865,7 +865,7 @@ public class LineageHardwareService extends LineageSystemService implements Ther
public float[] getPictureAdjustmentRanges() {
mContext.enforceCallingOrSelfPermission(
lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
if (isSupported(LineageHardwareManager.FEATURE_COLOR_BALANCE)) {
if (isSupported(LineageHardwareManager.FEATURE_PICTURE_ADJUSTMENT)) {
final List<Range<Float>> r = mLineageHwImpl.getPictureAdjustmentRanges();
return new float[] {
r.get(0).getLower(), r.get(0).getUpper(),