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);