Skip to content

Commit

Permalink
Fix Android build
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Mar 6, 2024
1 parent 1e8389a commit 611027f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
~ SOFTWARE.
-->

<manifest package="com.heinrichreimersoftware.materialintro.demo"
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

Expand Down
2 changes: 1 addition & 1 deletion library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
~ SOFTWARE.
-->

<manifest package="com.heinrichreimersoftware.materialintro" />
<manifest/>
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 611027f

Please sign in to comment.