Loading quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleView.java +9 −3 Original line number Diff line number Diff line Loading @@ -237,7 +237,11 @@ public class BubbleView extends ConstraintLayout { mBubble = bubble; mIcon = bubble.getIcon(); updateBubbleIcon(); if (bubble.getInfo().showAppBadge()) { mAppIcon.setImageBitmap(bubble.getBadge()); } else { mAppIcon.setVisibility(GONE); } mDotColor = bubble.getDotColor(); mDotRenderer = new DotRenderer(mBubbleSize, bubble.getDotPath(), DEFAULT_PATH_SIZE); String contentDesc = bubble.getInfo().getTitle(); Loading Loading @@ -302,9 +306,11 @@ public class BubbleView extends ConstraintLayout { } void setBadgeScale(float fraction) { if (mAppIcon.getVisibility() == VISIBLE) { mAppIcon.setScaleX(fraction); mAppIcon.setScaleY(fraction); } } boolean hasUnseenContent() { return mBubble != null Loading quickstep/tests/multivalentScreenshotTests/src/com/android/launcher3/taskbar/bubbles/BubbleViewScreenshotTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ class BubbleViewScreenshotTest(emulationSpec: DeviceEmulationSpec) { val flags = if (suppressNotification) Notification.BubbleMetadata.FLAG_SUPPRESS_NOTIFICATION else 0 val bubbleInfo = BubbleInfo("key", flags, null, null, 0, context.packageName, null, null, false) BubbleInfo("key", flags, null, null, 0, context.packageName, null, null, false, true) val bubbleView = inflater.inflate(R.layout.bubblebar_item_view, null) as BubbleView val dotPath = PathParser.createPathFromPathData( Loading quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/bubbles/BubbleViewTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ class BubbleViewTest { overflowView.setOverflow(BubbleBarOverflow(overflowView), bitmap) val bubbleInfo = BubbleInfo("key", 0, null, null, 0, context.packageName, null, null, false) BubbleInfo("key", 0, null, null, 0, context.packageName, null, null, false, true) bubbleView = inflater.inflate(R.layout.bubblebar_item_view, null, false) as BubbleView bubble = BubbleBarBubble(bubbleInfo, bubbleView, bitmap, bitmap, Color.WHITE, Path(), "") Loading quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/bubbles/animation/BubbleBarViewAnimatorTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -870,7 +870,7 @@ class BubbleBarViewAnimatorTest { bubbleBarView.addView(overflowView) val bubbleInfo = BubbleInfo("key", 0, null, null, 0, context.packageName, null, null, false) BubbleInfo("key", 0, null, null, 0, context.packageName, null, null, false, true) bubbleView = inflater.inflate(R.layout.bubblebar_item_view, bubbleBarView, false) as BubbleView bubble = Loading Loading
quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleView.java +9 −3 Original line number Diff line number Diff line Loading @@ -237,7 +237,11 @@ public class BubbleView extends ConstraintLayout { mBubble = bubble; mIcon = bubble.getIcon(); updateBubbleIcon(); if (bubble.getInfo().showAppBadge()) { mAppIcon.setImageBitmap(bubble.getBadge()); } else { mAppIcon.setVisibility(GONE); } mDotColor = bubble.getDotColor(); mDotRenderer = new DotRenderer(mBubbleSize, bubble.getDotPath(), DEFAULT_PATH_SIZE); String contentDesc = bubble.getInfo().getTitle(); Loading Loading @@ -302,9 +306,11 @@ public class BubbleView extends ConstraintLayout { } void setBadgeScale(float fraction) { if (mAppIcon.getVisibility() == VISIBLE) { mAppIcon.setScaleX(fraction); mAppIcon.setScaleY(fraction); } } boolean hasUnseenContent() { return mBubble != null Loading
quickstep/tests/multivalentScreenshotTests/src/com/android/launcher3/taskbar/bubbles/BubbleViewScreenshotTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ class BubbleViewScreenshotTest(emulationSpec: DeviceEmulationSpec) { val flags = if (suppressNotification) Notification.BubbleMetadata.FLAG_SUPPRESS_NOTIFICATION else 0 val bubbleInfo = BubbleInfo("key", flags, null, null, 0, context.packageName, null, null, false) BubbleInfo("key", flags, null, null, 0, context.packageName, null, null, false, true) val bubbleView = inflater.inflate(R.layout.bubblebar_item_view, null) as BubbleView val dotPath = PathParser.createPathFromPathData( Loading
quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/bubbles/BubbleViewTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ class BubbleViewTest { overflowView.setOverflow(BubbleBarOverflow(overflowView), bitmap) val bubbleInfo = BubbleInfo("key", 0, null, null, 0, context.packageName, null, null, false) BubbleInfo("key", 0, null, null, 0, context.packageName, null, null, false, true) bubbleView = inflater.inflate(R.layout.bubblebar_item_view, null, false) as BubbleView bubble = BubbleBarBubble(bubbleInfo, bubbleView, bitmap, bitmap, Color.WHITE, Path(), "") Loading
quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/bubbles/animation/BubbleBarViewAnimatorTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -870,7 +870,7 @@ class BubbleBarViewAnimatorTest { bubbleBarView.addView(overflowView) val bubbleInfo = BubbleInfo("key", 0, null, null, 0, context.packageName, null, null, false) BubbleInfo("key", 0, null, null, 0, context.packageName, null, null, false, true) bubbleView = inflater.inflate(R.layout.bubblebar_item_view, bubbleBarView, false) as BubbleView bubble = Loading