Skip to content

Commit f472a40

Browse files
committed
QUICKFIX Cancel Color
*FIX Cancel color not displaying correctly because library did not use ContextCompat to fetch color resource. *Version Bump to v2.4.2.
1 parent e00a33d commit f472a40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

customalert/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven'
33

44
group='com.github.searchy2'
5-
version = '2.4.1'
5+
version = '2.4.2'
66

77
android {
88
compileSdkVersion 28

customalert/src/main/java/stream/customalert/CustomAlertDialogue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public void onClick(View v) {
324324
});
325325
if (builder.getCancelColor() != 0)
326326
{
327-
cancelButton.setTextColor(builder.getCancelColor());
327+
cancelButton.setTextColor(ContextCompat.getColor(view.getContext(), builder.getCancelColor()));
328328
}
329329

330330
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && builder.getDecorView() != null)

0 commit comments

Comments
 (0)