Loading quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/PredictedAppIcon.java +12 −1 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ public class PredictedAppIcon extends DoubleShadowBubbleTextView { private static final float RING_EFFECT_RATIO = 0.11f; boolean mIsDrawingDot = false; private final DeviceProfile mDeviceProfile; private final Paint mIconRingPaint = new Paint(Paint.ANTI_ALIAS_FLAG); private boolean mIsPinned = false; Loading Loading @@ -80,6 +81,16 @@ public class PredictedAppIcon extends DoubleShadowBubbleTextView { canvas.restoreToCount(count); } @Override protected void drawDotIfNecessary(Canvas canvas) { mIsDrawingDot = true; int count = canvas.save(); canvas.translate(-getWidth() * RING_EFFECT_RATIO, -getHeight() * RING_EFFECT_RATIO); super.drawDotIfNecessary(canvas); canvas.restoreToCount(count); mIsDrawingDot = false; } @Override public void applyFromWorkspaceItem(WorkspaceItemInfo info) { super.applyFromWorkspaceItem(info); Loading Loading @@ -112,7 +123,7 @@ public class PredictedAppIcon extends DoubleShadowBubbleTextView { @Override public void getIconBounds(Rect outBounds) { super.getIconBounds(outBounds); if (!mIsPinned) { if (!mIsPinned && !mIsDrawingDot) { int predictionInset = (int) (getIconSize() * RING_EFFECT_RATIO); outBounds.inset(predictionInset, predictionInset); } Loading Loading
quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/PredictedAppIcon.java +12 −1 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ public class PredictedAppIcon extends DoubleShadowBubbleTextView { private static final float RING_EFFECT_RATIO = 0.11f; boolean mIsDrawingDot = false; private final DeviceProfile mDeviceProfile; private final Paint mIconRingPaint = new Paint(Paint.ANTI_ALIAS_FLAG); private boolean mIsPinned = false; Loading Loading @@ -80,6 +81,16 @@ public class PredictedAppIcon extends DoubleShadowBubbleTextView { canvas.restoreToCount(count); } @Override protected void drawDotIfNecessary(Canvas canvas) { mIsDrawingDot = true; int count = canvas.save(); canvas.translate(-getWidth() * RING_EFFECT_RATIO, -getHeight() * RING_EFFECT_RATIO); super.drawDotIfNecessary(canvas); canvas.restoreToCount(count); mIsDrawingDot = false; } @Override public void applyFromWorkspaceItem(WorkspaceItemInfo info) { super.applyFromWorkspaceItem(info); Loading Loading @@ -112,7 +123,7 @@ public class PredictedAppIcon extends DoubleShadowBubbleTextView { @Override public void getIconBounds(Rect outBounds) { super.getIconBounds(outBounds); if (!mIsPinned) { if (!mIsPinned && !mIsDrawingDot) { int predictionInset = (int) (getIconSize() * RING_EFFECT_RATIO); outBounds.inset(predictionInset, predictionInset); } Loading