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
This commit is contained in:
@@ -117,7 +117,7 @@ public class RegionSamplingHelper implements View.OnAttachStateChangeListener,
|
|||||||
@Override
|
@Override
|
||||||
public void onSampleCollected(float medianLuma) {
|
public void onSampleCollected(float medianLuma) {
|
||||||
if (mSamplingEnabled) {
|
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;
|
mCurrentMedianLuma = medianLuma;
|
||||||
|
|
||||||
// If the difference between the new luma and the current luma is larger than threshold
|
// If the difference between the new luma and the current luma is larger than threshold
|
||||||
|
|||||||
Reference in New Issue
Block a user