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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user