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
This commit is contained in:
Nikolas Havrikov
2020-08-24 11:41:23 +02:00
parent 6a3e6ad738
commit 67feaba4d9

View File

@@ -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";