Use correct folder radius for the reveal animation
This commit is contained in:
1 parent
11697433b7
commit
664d443b1a
1 file changed
+4
-1
@@ -179,7 +179,10 @@ public class FolderAnimationManager {
|
||||
Math.round((totalOffsetX + initialSize)),
|
||||
Math.round((paddingOffsetY + initialSize)));
|
||||
Rect endRect = new Rect(0, 0, lp.width, lp.height);
|
||||
float finalRadius = ResourceUtils.pxFromDp(2, mContext.getResources().getDisplayMetrics());
|
||||
float finalRadius = mContext.getResources().getDimension(R.dimen.bg_round_rect_radius);
|
||||
if (Utilities.ATLEAST_P) {
|
||||
finalRadius = Themes.getDimension(mContext, android.R.attr.dialogCornerRadius, finalRadius);
|
||||
}
|
||||
|
||||
// Create the animators.
|
||||
AnimatorSet a = new AnimatorSet();
|
||||
|
||||
Reference in new issue
Block a user