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

Commit 2ab371b1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "TODO about BatteryStats.STATS_SINCE deprecation"

parents d9f680fc 66566095
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -291,6 +291,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;