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

Commit 6f9be442 authored by Xiaowen Lei's avatar Xiaowen Lei
Browse files

Rename updateMediaLuma to updateMedianLuma.

Looks like a simple typo. I found it confusing, thought the function had
something to do with media.

Bug: 260624151
Test: passing existing tests.
Change-Id: I4a5f821a44d4eb32aa566a4c7ba2505ed8d35f88
Merged-In: I4a5f821a44d4eb32aa566a4c7ba2505ed8d35f88
(cherry picked from commit 65555750)
parent 36c8d868
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