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

Commit 7b44c9be authored by Hieu Dang's avatar Hieu Dang
Browse files

Using Loggable for BluetoothOpp

Use Loggable help debugging Opp, which previous require rebuilding and
change constant in code.

Test: atest BluetoothInstrumentationTests
Tag: #refactor
Bug: 283043783
Change-Id: Icea6efc89f6dc8b15bd3b58d8b3f19e05dcb018b
parent 78d3479f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -206,9 +206,13 @@ public class Constants {
    /** Notify NFC of the transfer progress periodically, or it will timeout after 20sec. */
    static final int NFC_ALIVE_CHECK_MS = 10000;

    /**
     * To log debug/verbose in OPP, use the command "setprop log.tag.BluetoothOpp DEBUG" or
     * "setprop log.tag.BluetoothOpp VERBOSE" and then "adb root" + "adb shell "stop; start""
     **/
    static final boolean DEBUG = true;

    static final boolean VERBOSE = false;
    static final boolean VERBOSE = Log.isLoggable(TAG, Log.VERBOSE);

    static final int MAX_RECORDS_IN_DATABASE = 50;