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

Commit 66566095 authored by Bookatz's avatar Bookatz
Browse files

TODO about BatteryStats.STATS_SINCE deprecation

Test: None. Just a comment.
Change-Id: Ib60034998e1d4a374934842f6f86c04a13760d12
parent 545b43b0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -262,6 +262,8 @@ public class PowerUsageSummary extends PowerUsageBase implements OnLongClickList
        switch (item.getItemId()) {
            case MENU_STATS_TYPE:
                if (mStatsType == BatteryStats.STATS_SINCE_CHARGED) {
                    // TODO: STATS_SINCE_UNPLUGGED is deprecated in Q, so this accomplishes nothing,
                    // but mStatsType doesn't seem to be hooked up to anything anyway.
                    mStatsType = BatteryStats.STATS_SINCE_UNPLUGGED;
                } else {
                    mStatsType = BatteryStats.STATS_SINCE_CHARGED;