diff options
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r-- | src/com/android/launcher3/CellLayout.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index cac6c065a..c0946a0e3 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -51,7 +51,7 @@ import com.android.launcher3.accessibility.DragAndDropAccessibilityDelegate; import com.android.launcher3.accessibility.FolderAccessibilityHelper; import com.android.launcher3.accessibility.WorkspaceAccessibilityHelper; import com.android.launcher3.anim.PropertyListBuilder; -import com.android.launcher3.config.ProviderConfig; +import com.android.launcher3.config.FeatureFlags; import com.android.launcher3.folder.FolderIcon; import com.android.launcher3.graphics.DragPreviewProvider; import com.android.launcher3.util.CellAndSpan; @@ -106,7 +106,6 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler { private ArrayList<FolderIcon.PreviewBackground> mFolderBackgrounds = new ArrayList<FolderIcon.PreviewBackground>(); FolderIcon.PreviewBackground mFolderLeaveBehind = new FolderIcon.PreviewBackground(); - Paint mFolderBgPaint = new Paint(); private float mBackgroundAlpha; @@ -502,9 +501,9 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler { cellToPoint(bg.delegateCellX, bg.delegateCellY, mTempLocation); canvas.save(); canvas.translate(mTempLocation[0], mTempLocation[1]); - bg.drawBackground(canvas, mFolderBgPaint); + bg.drawBackground(canvas); if (!bg.isClipping) { - bg.drawBackgroundStroke(canvas, mFolderBgPaint); + bg.drawBackgroundStroke(canvas); } canvas.restore(); } @@ -514,7 +513,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler { mFolderLeaveBehind.delegateCellY, mTempLocation); canvas.save(); canvas.translate(mTempLocation[0], mTempLocation[1]); - mFolderLeaveBehind.drawLeaveBehind(canvas, mFolderBgPaint); + mFolderLeaveBehind.drawLeaveBehind(canvas); canvas.restore(); } } @@ -529,7 +528,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler { cellToPoint(bg.delegateCellX, bg.delegateCellY, mTempLocation); canvas.save(); canvas.translate(mTempLocation[0], mTempLocation[1]); - bg.drawBackgroundStroke(canvas, mFolderBgPaint); + bg.drawBackgroundStroke(canvas); canvas.restore(); } } @@ -570,7 +569,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler { try { dispatchRestoreInstanceState(states); } catch (IllegalArgumentException ex) { - if (ProviderConfig.IS_DOGFOOD_BUILD) { + if (FeatureFlags.IS_DOGFOOD_BUILD) { throw ex; } // Mismatched viewId / viewType preventing restore. Skip restore on production builds. |