From 611027f13bc3b56deccbcaa8c0f8ac8650784058 Mon Sep 17 00:00:00 2001 From: Jan Heinrich Reimer Date: Wed, 6 Mar 2024 03:18:17 +0000 Subject: [PATCH] Fix Android build --- app/src/main/AndroidManifest.xml | 2 +- library/src/main/AndroidManifest.xml | 2 +- .../materialintro/app/IntroActivity.java | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5928b90..22de2cf 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -22,7 +22,7 @@ ~ SOFTWARE. --> - diff --git a/library/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml index 236d388..96f81f0 100644 --- a/library/src/main/AndroidManifest.xml +++ b/library/src/main/AndroidManifest.xml @@ -22,4 +22,4 @@ ~ SOFTWARE. --> - + diff --git a/library/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java b/library/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java index a326804..1ba8203 100644 --- a/library/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java +++ b/library/src/main/java/com/heinrichreimersoftware/materialintro/app/IntroActivity.java @@ -622,10 +622,7 @@ private void updateTaskDescription() { colorPrimary = ContextCompat.getColor(IntroActivity.this, getBackground(position)); } } else { - TypedValue typedValue = new TypedValue(); - TypedArray a = obtainStyledAttributes(typedValue.data, new int[]{R.attr.colorPrimary}); - colorPrimary = a.getColor(0, 0); - a.recycle(); + colorPrimary = Color.GRAY; } colorPrimary = ColorUtils.setAlphaComponent(colorPrimary, 0xFF);