From 67feaba4d97f78a149c51b541cfaac7e00d5655f Mon Sep 17 00:00:00 2001 From: Nikolas Havrikov Date: Mon, 24 Aug 2020 11:41:23 +0200 Subject: [PATCH] Make the debug logging in pip menu more flexible Instead of hardcoding the DEBUG flag as false, this CL makes it flexibly toggle-able by means of adb setprop. Test: manually Change-Id: If81a82eb206865225a5b52bcef2cd0f9fc92c7bd --- .../src/com/android/systemui/pip/tv/PipMenuActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/pip/tv/PipMenuActivity.java b/packages/SystemUI/src/com/android/systemui/pip/tv/PipMenuActivity.java index 214088c99eeb8..70374036ef146 100644 --- a/packages/SystemUI/src/com/android/systemui/pip/tv/PipMenuActivity.java +++ b/packages/SystemUI/src/com/android/systemui/pip/tv/PipMenuActivity.java @@ -36,8 +36,8 @@ import javax.inject.Inject; * Activity to show the PIP menu to control PIP. */ public class PipMenuActivity extends Activity implements PipManager.Listener { - private static final boolean DEBUG = false; private static final String TAG = "PipMenuActivity"; + private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG); static final String EXTRA_CUSTOM_ACTIONS = "custom_actions";