Skip to content
Snippets Groups Projects
Commit 38dd3064 authored by Dhina17's avatar Dhina17
Browse files

fixup! GlobalActionsDialog: Enable blur behind via window flags

Change-Id: I1ea402a5de6c5519624abc13b49f2cff3d578747
parent 818a8f12
No related branches found
No related tags found
No related merge requests found
......@@ -2783,7 +2783,7 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
| WindowManager.LayoutParams.FLAG_DIM_BEHIND);
// Set blur behind radius
int blurBehindRadius = mContext.getResources()
.getDimensionPixelSize(com.android.systemui.R.dimen.max_window_blur_radius);
.getDimensionPixelSize(com.android.systemui.res.R.dimen.max_window_blur_radius);
window.getAttributes().setBlurBehindRadius(blurBehindRadius);
}
}
......
......@@ -88,7 +88,7 @@ public class GlobalActionsPowerDialog {
| WindowManager.LayoutParams.FLAG_DIM_BEHIND);
// Set blur behind radius
int blurBehindRadius = context.getResources()
.getDimensionPixelSize(com.android.systemui.R.dimen.max_window_blur_radius);
.getDimensionPixelSize(com.android.systemui.res.R.dimen.max_window_blur_radius);
window.getAttributes().setBlurBehindRadius(blurBehindRadius);
// Set dim only when blur is enabled.
window.setDimAmount(0.54f);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment