Loading libs/WindowManager/Shell/res/layout/bubble_bar_menu_view.xml +2 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,8 @@ android:layout_height="wrap_content" android:orientation="vertical" android:layout_marginTop="@dimen/bubble_bar_manage_menu_section_spacing" android:clipChildren="true" android:clipToOutline="true" android:background="@drawable/bubble_manage_menu_bg" android:elevation="@dimen/bubble_manage_menu_elevation" /> Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarMenuView.java +9 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.wm.shell.bubbles.bar; import android.annotation.ColorInt; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.drawable.Icon; import android.util.AttributeSet; Loading Loading @@ -64,6 +65,14 @@ public class BubbleBarMenuView extends LinearLayout { mActionsSectionView = findViewById(R.id.bubble_bar_manage_menu_actions_section); mBubbleIconView = findViewById(R.id.bubble_bar_manage_menu_bubble_icon); mBubbleTitleView = findViewById(R.id.bubble_bar_manage_menu_bubble_title); updateActionsBackgroundColor(); } private void updateActionsBackgroundColor() { try (TypedArray ta = mContext.obtainStyledAttributes(new int[]{ com.android.internal.R.attr.materialColorSurfaceBright})) { mActionsSectionView.getBackground().setTint(ta.getColor(0, Color.WHITE)); } } /** Update menu details with bubble info */ Loading Loading
libs/WindowManager/Shell/res/layout/bubble_bar_menu_view.xml +2 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,8 @@ android:layout_height="wrap_content" android:orientation="vertical" android:layout_marginTop="@dimen/bubble_bar_manage_menu_section_spacing" android:clipChildren="true" android:clipToOutline="true" android:background="@drawable/bubble_manage_menu_bg" android:elevation="@dimen/bubble_manage_menu_elevation" /> Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarMenuView.java +9 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.wm.shell.bubbles.bar; import android.annotation.ColorInt; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.drawable.Icon; import android.util.AttributeSet; Loading Loading @@ -64,6 +65,14 @@ public class BubbleBarMenuView extends LinearLayout { mActionsSectionView = findViewById(R.id.bubble_bar_manage_menu_actions_section); mBubbleIconView = findViewById(R.id.bubble_bar_manage_menu_bubble_icon); mBubbleTitleView = findViewById(R.id.bubble_bar_manage_menu_bubble_title); updateActionsBackgroundColor(); } private void updateActionsBackgroundColor() { try (TypedArray ta = mContext.obtainStyledAttributes(new int[]{ com.android.internal.R.attr.materialColorSurfaceBright})) { mActionsSectionView.getBackground().setTint(ta.getColor(0, Color.WHITE)); } } /** Update menu details with bubble info */ Loading