Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 602fe258 authored by Jack He's avatar Jack He
Browse files

A2DP: Simplify debug log mechanism

* Override log() method in StateMachine to log messages gated by DBG
  flag
* Replace all usages of "if (DBG) Log.d(TAG, msg)" with log(msg)
* Call StateMachine.setDbg(DBG) in the constructor to enable more
  logging for StateMachine
* Add null check to getCurrentMessages() in logging to avoid unintended
  NPE

Bug: 73899051
Test: connect to and disconnect from A2DP devices
Change-Id: Id89f3ba99c97c62dca74fa3901dc3c6f2c352fc1
parent af580a55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment