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

Commit 7839fe83 authored by Evan Laird's avatar Evan Laird
Browse files

Fix battery content description when there is no percent mode

Fixes: 135157243
Test: can focus on status bar battery when talkback is on
Change-Id: I413ba6664bc651ddc378ae344fa42a17d460bfa5
parent 7fc7f9ce
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -365,6 +365,10 @@ public class BatteryMeterView extends LinearLayout implements
            } else {
                setPercentTextAtCurrentLevel();
            }
        } else {
            setContentDescription(
                    getContext().getString(mCharging ? R.string.accessibility_battery_level_charging
                            : R.string.accessibility_battery_level, mLevel));
        }
    }