diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/QsWidgets.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/QsWidgets.java index c81564a9..68d2f568 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/QsWidgets.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/QsWidgets.java @@ -248,7 +248,7 @@ private void placeWidgets() { mOplusQsMediaView.addView(qsControlsView, 0); qsControlsView.bringToFront(); qsControlsView.requestLayout(); - updateControlsBg(); + updateControlsBg(qsControlsView); updateTileColors(false); updateTileShapes(false); updateWidgets(); @@ -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); }