Adding logging to track down alpha changes

Bug: 195853168
Test: Just logging
Change-Id: Ifd52101baa7af45f2253fd6c10b5d071c1a0e674
This commit is contained in:
Winson Chung
2021-09-16 11:29:44 -07:00
parent ab61699aac
commit 6ae68138f8

View File

@@ -102,10 +102,7 @@ import java.util.function.Consumer;
public class NavigationBarView extends FrameLayout implements
NavigationModeController.ModeChangedListener {
final static boolean DEBUG = false;
final static String TAG = "StatusBar/NavBarView";
// slippery nav bar when everything is disabled, e.g. during setup
final static boolean SLIPPERY_WHEN_DISABLED = true;
final static String TAG = "NavBarView";
final static boolean ALTERNATE_CAR_MODE_UI = false;
private final RegionSamplingHelper mRegionSamplingHelper;
@@ -385,6 +382,12 @@ public class NavigationBarView extends FrameLayout implements
}
}
@Override
protected boolean onSetAlpha(int alpha) {
Log.e(TAG, "onSetAlpha", new Throwable());
return super.onSetAlpha(alpha);
}
public void setAutoHideController(AutoHideController autoHideController) {
mAutoHideController = autoHideController;
}
@@ -1319,6 +1322,7 @@ public class NavigationBarView extends FrameLayout implements
dumpButton(pw, "back", getBackButton());
dumpButton(pw, "home", getHomeButton());
dumpButton(pw, "handle", getHomeHandle());
dumpButton(pw, "rcnt", getRecentsButton());
dumpButton(pw, "rota", getRotateSuggestionButton());
dumpButton(pw, "a11y", getAccessibilityButton());