From 65555750a379f43c0ed2a85498e1aeb1acdf7851 Mon Sep 17 00:00:00 2001 From: Xiaowen Lei Date: Wed, 23 Nov 2022 18:31:14 +0000 Subject: [PATCH] Rename updateMediaLuma to updateMedianLuma. Looks like a simple typo. I found it confusing, thought the function had something to do with media. Bug: just a simple typo fix. Test: passing existing tests. Change-Id: I4a5f821a44d4eb32aa566a4c7ba2505ed8d35f88 --- .../systemui/shared/navigationbar/RegionSamplingHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/RegionSamplingHelper.java b/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/RegionSamplingHelper.java index cbd0875d2b2c8..9999f08ee03c2 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/RegionSamplingHelper.java +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/RegionSamplingHelper.java @@ -117,7 +117,7 @@ public class RegionSamplingHelper implements View.OnAttachStateChangeListener, @Override public void onSampleCollected(float medianLuma) { if (mSamplingEnabled) { - updateMediaLuma(medianLuma); + updateMedianLuma(medianLuma); } } }; @@ -261,7 +261,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