Disable auto dimming when color sampling is enabled

Bug: 132371142
Test: Manual, launch app/rotate and ensure that the handle does not dim
Change-Id: I2616dd81b8453e7d8fb196273499db373a10fa93
This commit is contained in:
Winson Chung
2019-05-14 16:22:57 -07:00
parent 9a086d9f32
commit ebeed0239b

View File

@@ -107,6 +107,8 @@ public final class NavigationBarTransitions extends BarTransitions implements
@Override
public void setAutoDim(boolean autoDim) {
// Ensure we aren't in gestural nav if we are triggering auto dim
if (autoDim && NavBarTintController.isEnabled(mView.getContext(), mNavBarMode)) return;
if (mAutoDim == autoDim) return;
mAutoDim = autoDim;
applyLightsOut(true, false);