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

Commit f744dbac authored by Shumao's avatar Shumao Committed by Shumao Hou
Browse files

BatteryStatsService: Fix wrong arguments passed to noteBluetoothScanStoppedFromSourceLocked.



Arguments in the wrong order were passed to
noteBluetoothScanStoppedFromSourceLocked in noteBleScanStopped,
which may cause time errors in BatteryStats.

Bug: N/A
Test: N/A
Change-Id: Ic022abb88f7482be509fb675ac1517334989bc10
Signed-off-by: default avatarShumao Hou <shumao1129@gmail.com>
parent 2c630f88
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1978,7 +1978,7 @@ public final class BatteryStatsService extends IBatteryStats.Stub
            mHandler.post(() -> {
            mHandler.post(() -> {
                synchronized (mStats) {
                synchronized (mStats) {
                    mStats.noteBluetoothScanStoppedFromSourceLocked(localWs, isUnoptimized,
                    mStats.noteBluetoothScanStoppedFromSourceLocked(localWs, isUnoptimized,
                            uptime, elapsedRealtime);
                            elapsedRealtime, uptime);
                }
                }
            });
            });
        }
        }