Fix full-charge timestamp lost in battery chart graph.

Bug: 308917113
Fix: 308917113
Test: manual
Change-Id: Ie87c72a020a3b169a25df6422ea3b456b988c14d
This commit is contained in:
mxyyiyi
2023-11-02 18:43:21 +08:00
parent 1742fa2ed0
commit feaf08a9ba
2 changed files with 28 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ public interface BatteryEventDao {
/** Gets the {@link Cursor} of all recorded data after a specific timestamp. */
@Query("SELECT * FROM BatteryEventEntity"
+ " WHERE timestamp > :timestamp AND batteryEventType IN (:batteryEventTypes)"
+ " WHERE timestamp >= :timestamp AND batteryEventType IN (:batteryEventTypes)"
+ " ORDER BY timestamp DESC")
Cursor getAllAfter(long timestamp, List<Integer> batteryEventTypes);