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

Commit 58e8d862 authored by Kihong Seong's avatar Kihong Seong Committed by Gerrit Code Review
Browse files

Merge "Add scan mode information to log when upgrading and reverting scan mode" into main

parents 2989545b 809daa3c
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -782,7 +782,12 @@ public class ScanManager {
            if (upgradeScanModeByOneLevel(client)) {
                Message msg = obtainMessage(MSG_REVERT_SCAN_MODE_UPGRADE);
                msg.obj = client;
                Log.d(TAG, "scanMode is upgraded for " + client);
                Log.d(
                        TAG,
                        "scanMode is upgraded to "
                                + getScanModeString(client.settings.getScanMode())
                                + " for "
                                + client);
                sendMessageDelayed(msg, mAdapterService.getScanUpgradeDurationMillis());
                return true;
            }
@@ -809,7 +814,12 @@ public class ScanManager {
                return;
            }
            if (client.updateScanMode(client.scanModeApp)) {
                Log.d(TAG, "scanMode upgrade is reverted for " + client);
                Log.d(
                        TAG,
                        "scanMode upgrade is reverted to "
                                + getScanModeString(client.scanModeApp)
                                + " for "
                                + client);
                mScanNative.configureRegularScanParams();
            }
        }