Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/Bubble.java +8 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,8 @@ public class Bubble implements BubbleViewProvider { private Bitmap mBubbleBitmap; // The app badge for the bubble private Bitmap mBadgeBitmap; // App badge without any markings for important conversations private Bitmap mRawBadgeBitmap; private int mDotColor; private Path mDotPath; private int mFlags; Loading Loading @@ -247,6 +249,11 @@ public class Bubble implements BubbleViewProvider { return mBadgeBitmap; } @Override public Bitmap getRawAppBadge() { return mRawBadgeBitmap; } @Override public int getDotColor() { return mDotColor; Loading Loading @@ -409,6 +416,7 @@ public class Bubble implements BubbleViewProvider { mFlyoutMessage = info.flyoutMessage; mBadgeBitmap = info.badgeBitmap; mRawBadgeBitmap = info.mRawBadgeBitmap; mBubbleBitmap = info.bubbleBitmap; mDotColor = info.dotColor; Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleOverflow.kt +4 −0 Original line number Diff line number Diff line Loading @@ -141,6 +141,10 @@ class BubbleOverflow( return null } override fun getRawAppBadge(): Bitmap? { return null } override fun getBubbleIcon(): Bitmap { return bitmap } Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java +6 −4 Original line number Diff line number Diff line Loading @@ -2615,12 +2615,14 @@ public class BubbleStackView extends FrameLayout // If available, update the manage menu's settings option with the expanded bubble's app // name and icon. if (show && mBubbleData.hasBubbleInStackWithKey(mExpandedBubble.getKey())) { if (show) { final Bubble bubble = mBubbleData.getBubbleInStackWithKey(mExpandedBubble.getKey()); mManageSettingsIcon.setImageBitmap(bubble.getAppBadge()); if (bubble != null) { mManageSettingsIcon.setImageBitmap(bubble.getRawAppBadge()); mManageSettingsText.setText(getResources().getString( R.string.bubbles_app_settings, bubble.getAppName())); } } if (mExpandedBubble.getExpandedView().getTaskView() != null) { mExpandedBubble.getExpandedView().getTaskView().setObscuredTouchRect(mShowingManage Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleViewInfoTask.java +3 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ public class BubbleViewInfoTask extends AsyncTask<Void, Void, BubbleViewInfoTask String appName; Bitmap bubbleBitmap; Bitmap badgeBitmap; Bitmap mRawBadgeBitmap; int dotColor; Path dotPath; Bubble.FlyoutMessage flyoutMessage; Loading Loading @@ -189,6 +190,8 @@ public class BubbleViewInfoTask extends AsyncTask<Void, Void, BubbleViewInfoTask BitmapInfo badgeBitmapInfo = iconFactory.getBadgeBitmap(badgedIcon, b.isImportantConversation()); info.badgeBitmap = badgeBitmapInfo.icon; // Raw badge bitmap never includes the important conversation ring info.mRawBadgeBitmap = iconFactory.getBadgeBitmap(badgedIcon, false).icon; info.bubbleBitmap = iconFactory.createBadgedIconBitmap(bubbleDrawable).icon; // Dot color & placement Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleViewProvider.java +3 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,9 @@ public interface BubbleViewProvider { /** App badge drawable to draw above bubble icon. */ @Nullable Bitmap getAppBadge(); /** Base app badge drawable without any markings. */ @Nullable Bitmap getRawAppBadge(); /** Path of normalized bubble icon to draw dot on. */ Path getDotPath(); Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/Bubble.java +8 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,8 @@ public class Bubble implements BubbleViewProvider { private Bitmap mBubbleBitmap; // The app badge for the bubble private Bitmap mBadgeBitmap; // App badge without any markings for important conversations private Bitmap mRawBadgeBitmap; private int mDotColor; private Path mDotPath; private int mFlags; Loading Loading @@ -247,6 +249,11 @@ public class Bubble implements BubbleViewProvider { return mBadgeBitmap; } @Override public Bitmap getRawAppBadge() { return mRawBadgeBitmap; } @Override public int getDotColor() { return mDotColor; Loading Loading @@ -409,6 +416,7 @@ public class Bubble implements BubbleViewProvider { mFlyoutMessage = info.flyoutMessage; mBadgeBitmap = info.badgeBitmap; mRawBadgeBitmap = info.mRawBadgeBitmap; mBubbleBitmap = info.bubbleBitmap; mDotColor = info.dotColor; Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleOverflow.kt +4 −0 Original line number Diff line number Diff line Loading @@ -141,6 +141,10 @@ class BubbleOverflow( return null } override fun getRawAppBadge(): Bitmap? { return null } override fun getBubbleIcon(): Bitmap { return bitmap } Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java +6 −4 Original line number Diff line number Diff line Loading @@ -2615,12 +2615,14 @@ public class BubbleStackView extends FrameLayout // If available, update the manage menu's settings option with the expanded bubble's app // name and icon. if (show && mBubbleData.hasBubbleInStackWithKey(mExpandedBubble.getKey())) { if (show) { final Bubble bubble = mBubbleData.getBubbleInStackWithKey(mExpandedBubble.getKey()); mManageSettingsIcon.setImageBitmap(bubble.getAppBadge()); if (bubble != null) { mManageSettingsIcon.setImageBitmap(bubble.getRawAppBadge()); mManageSettingsText.setText(getResources().getString( R.string.bubbles_app_settings, bubble.getAppName())); } } if (mExpandedBubble.getExpandedView().getTaskView() != null) { mExpandedBubble.getExpandedView().getTaskView().setObscuredTouchRect(mShowingManage Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleViewInfoTask.java +3 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ public class BubbleViewInfoTask extends AsyncTask<Void, Void, BubbleViewInfoTask String appName; Bitmap bubbleBitmap; Bitmap badgeBitmap; Bitmap mRawBadgeBitmap; int dotColor; Path dotPath; Bubble.FlyoutMessage flyoutMessage; Loading Loading @@ -189,6 +190,8 @@ public class BubbleViewInfoTask extends AsyncTask<Void, Void, BubbleViewInfoTask BitmapInfo badgeBitmapInfo = iconFactory.getBadgeBitmap(badgedIcon, b.isImportantConversation()); info.badgeBitmap = badgeBitmapInfo.icon; // Raw badge bitmap never includes the important conversation ring info.mRawBadgeBitmap = iconFactory.getBadgeBitmap(badgedIcon, false).icon; info.bubbleBitmap = iconFactory.createBadgedIconBitmap(bubbleDrawable).icon; // Dot color & placement Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleViewProvider.java +3 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,9 @@ public interface BubbleViewProvider { /** App badge drawable to draw above bubble icon. */ @Nullable Bitmap getAppBadge(); /** Base app badge drawable without any markings. */ @Nullable Bitmap getRawAppBadge(); /** Path of normalized bubble icon to draw dot on. */ Path getDotPath(); Loading