Merge "Use theme color for AV container background to avoid a white flash in dark mode." into rvc-qpr-dev am: 760c7f91d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12326450 Change-Id: Idfce2b883ceeeaaf16381f013e5b1d878dad00b0
This commit is contained in:
@@ -306,7 +306,6 @@ public class BubbleExpandedView extends LinearLayout {
|
|||||||
// Set ActivityView's alpha value as zero, since there is no view content to be shown.
|
// Set ActivityView's alpha value as zero, since there is no view content to be shown.
|
||||||
setContentVisibility(false);
|
setContentVisibility(false);
|
||||||
|
|
||||||
mActivityViewContainer.setBackgroundColor(Color.WHITE);
|
|
||||||
mActivityViewContainer.setOutlineProvider(new ViewOutlineProvider() {
|
mActivityViewContainer.setOutlineProvider(new ViewOutlineProvider() {
|
||||||
@Override
|
@Override
|
||||||
public void getOutline(View view, Outline outline) {
|
public void getOutline(View view, Outline outline) {
|
||||||
@@ -434,9 +433,11 @@ public class BubbleExpandedView extends LinearLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void applyThemeAttrs() {
|
void applyThemeAttrs() {
|
||||||
final TypedArray ta = mContext.obtainStyledAttributes(
|
final TypedArray ta = mContext.obtainStyledAttributes(new int[] {
|
||||||
new int[] {android.R.attr.dialogCornerRadius});
|
android.R.attr.dialogCornerRadius,
|
||||||
|
android.R.attr.colorBackgroundFloating});
|
||||||
mCornerRadius = ta.getDimensionPixelSize(0, 0);
|
mCornerRadius = ta.getDimensionPixelSize(0, 0);
|
||||||
|
mActivityViewContainer.setBackgroundColor(ta.getColor(1, Color.WHITE));
|
||||||
ta.recycle();
|
ta.recycle();
|
||||||
|
|
||||||
if (mActivityView != null && ScreenDecorationsUtils.supportsRoundedCornersOnWindows(
|
if (mActivityView != null && ScreenDecorationsUtils.supportsRoundedCornersOnWindows(
|
||||||
|
|||||||
Reference in New Issue
Block a user