Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 314ab915 authored by Xiaowen Lei's avatar Xiaowen Lei Committed by Automerger Merge Worker
Browse files

Merge "Rename updateMediaLuma to updateMedianLuma." into tm-qpr-dev am: 1b4e2876

parents 2ffb6c07 1b4e2876
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ public class RegionSamplingHelper implements View.OnAttachStateChangeListener,
            @Override
            public void onSampleCollected(float medianLuma) {
                if (mSamplingEnabled) {
                    updateMediaLuma(medianLuma);
                    updateMedianLuma(medianLuma);
                }
            }
        };
@@ -260,7 +260,7 @@ public class RegionSamplingHelper implements View.OnAttachStateChangeListener,
        }
    }

    private void updateMediaLuma(float medianLuma) {
    private void updateMedianLuma(float medianLuma) {
        mCurrentMedianLuma = medianLuma;

        // If the difference between the new luma and the current luma is larger than threshold