Skip to content

Commit fd66d77

Browse files
LorDClockaNtemasek
authored andcommitted
LagFix: Don't set any transparency if it's set to default value
Change-Id: Idf55f8bfec29c73108f0b5622a1d9266f85369a3 * temasek sources doesn't include the following transparancies per conflict files Conflicts: packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java services/core/java/com/android/server/policy/GlobalActions.java services/core/java/com/android/server/power/ShutdownThread.java
1 parent ae6778f commit fd66d77

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2718,11 +2718,14 @@ public void update() {
27182718
}
27192719

27202720
private void setQSBackgroundAlpha() {
2721-
if (mQsContainer != null) {
2722-
mQsContainer.getBackground().setAlpha(mQSShadeAlpha);
2723-
}
2724-
if (mQsPanel != null) {
2725-
mQsPanel.setQSShadeAlphaValue(mQSShadeAlpha);
2721+
if (Settings.System.getInt(mContext.getContentResolver(),
2722+
Settings.System.QS_TRANSPARENT_SHADE, 255) != 255) {
2723+
if (mQsContainer != null) {
2724+
mQsContainer.getBackground().setAlpha(mQSShadeAlpha);
2725+
}
2726+
if (mQsPanel != null) {
2727+
mQsPanel.setQSShadeAlphaValue(mQSShadeAlpha);
2728+
}
27262729
}
27272730
}
27282731

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,11 +1352,14 @@ private void disableTextShadow() {
13521352
}
13531353

13541354
private void setQSHeaderAlpha() {
1355-
if (mHeaderView != null) {
1356-
mHeaderView.getBackground().setAlpha(mQSHeaderAlpha);
1357-
}
1358-
if (mBackgroundImage != null) {
1359-
mBackgroundImage.setAlpha(mQSHeaderAlpha);
1355+
if (Settings.System.getInt(mContext.getContentResolver(),
1356+
Settings.System.QS_TRANSPARENT_HEADER, 255) != 255) {
1357+
if (mHeaderView != null) {
1358+
mHeaderView.getBackground().setAlpha(mQSHeaderAlpha);
1359+
}
1360+
if (mBackgroundImage != null) {
1361+
mBackgroundImage.setAlpha(mQSHeaderAlpha);
1362+
}
13601363
}
13611364
}
13621365

0 commit comments

Comments
 (0)