Skip to content

Commit

Permalink
base: SystemUI: fix volume dialog issue
Browse files Browse the repository at this point in the history
When user turn on per-app volume control
and sets the display size to the minimum,
the volume dialog will have an issue of display like this:
https://ftp.bmp.ovh/imgs/2021/01/b821ad72f3152133.jpg

Signed-off-by: cjybyjk <[email protected]>
Signed-off-by: NurKeinNeid <[email protected]>
Signed-off-by: Joey Huab <[email protected]>
Signed-off-by: Genkzsz11 <[email protected]>
  • Loading branch information
cjybyjk authored and Genkzsz11 committed Jun 10, 2021
1 parent a9d8ff1 commit 51e1c05
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -876,16 +876,16 @@ public void initSettingsH() {
});
}
if (mShowAppVolume) {
updateAppRows();
updateAppRows(mExpanded);
}
}

private void updateAppRows() {
private void updateAppRows(boolean expand) {
for (int i = mAppRows.size() - 1; i >= 0; i--) {
final VolumeRow row = mAppRows.get(i);
removeAppRow(row);
}
if (!mShowAppVolume) return;
if (!mShowAppVolume || expand) return;
List<AppTrackData> trackDatas = mController.getAudioManager().listAppTrackDatas();
for (AppTrackData data : trackDatas) {
if (data.isActive()) {
Expand Down

0 comments on commit 51e1c05

Please sign in to comment.