Skip to content

Commit

Permalink
QsWidgets: use same instance for controls bg
Browse files Browse the repository at this point in the history
Signed-off-by: DHD2280 <[email protected]>
  • Loading branch information
DHD2280 committed Dec 10, 2024
1 parent 129d61a commit ca504c5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private void placeWidgets() {
mOplusQsMediaView.addView(qsControlsView, 0);
qsControlsView.bringToFront();
qsControlsView.requestLayout();
updateControlsBg();
updateControlsBg(qsControlsView);
updateTileColors(false);
updateTileShapes(false);
updateWidgets();
Expand All @@ -273,8 +273,7 @@ private void updateMediaPlayerPrefs() {
}
}

private void updateControlsBg() {
QsControlsView qsControlsView = QsControlsView.getInstance();
private void updateControlsBg(QsControlsView qsControlsView) {
if (qsControlsView != null) {
qsControlsView.updateDefaultMediaBg(mDefaultMediaBg);
}
Expand Down

0 comments on commit ca504c5

Please sign in to comment.