Skip to content

Commit 46778db

Browse files
committed
[Gradle] Update AppCompat dependency to 1.6.1
This fixes Proguard warnings about ShadowDrawableWrapper. Resolves #3374 PiperOrigin-RevId: 530651081
1 parent 577d23e commit 46778db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ext {
2323

2424
androidXVersions = [
2525
annotation : '1.2.0',
26-
appCompat : '1.5.0',
26+
appCompat : '1.6.1',
2727
cardView : '1.0.0',
2828
constraintlayout : '2.0.1',
2929
coordinatorlayout : '1.1.0',

lib/java/com/google/android/material/shadow/ShadowDrawableWrapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import android.graphics.RectF;
3030
import android.graphics.Shader;
3131
import android.graphics.drawable.Drawable;
32-
import androidx.appcompat.graphics.drawable.DrawableWrapper;
32+
import androidx.appcompat.graphics.drawable.DrawableWrapperCompat;
3333
import androidx.annotation.NonNull;
3434
import androidx.core.content.ContextCompat;
3535

@@ -40,7 +40,7 @@
4040
* @deprecated Use {@link com.google.android.material.shape.MaterialShapeDrawable} instead.
4141
*/
4242
@Deprecated
43-
public class ShadowDrawableWrapper extends DrawableWrapper {
43+
public class ShadowDrawableWrapper extends DrawableWrapperCompat {
4444
// used to calculate content padding
4545
static final double COS_45 = Math.cos(Math.toRadians(45));
4646

@@ -365,7 +365,7 @@ private void buildComponents(@NonNull Rect bounds) {
365365
bounds.right - rawMaxShadowSize,
366366
bounds.bottom - verticalOffset);
367367

368-
getWrappedDrawable()
368+
getDrawable()
369369
.setBounds(
370370
(int) contentBounds.left,
371371
(int) contentBounds.top,

0 commit comments

Comments
 (0)