diff options
Diffstat (limited to 'app/src/main/java/io/heckel/ntfy/util/Util.kt')
-rw-r--r-- | app/src/main/java/io/heckel/ntfy/util/Util.kt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/src/main/java/io/heckel/ntfy/util/Util.kt b/app/src/main/java/io/heckel/ntfy/util/Util.kt index 56c9e38..56931eb 100644 --- a/app/src/main/java/io/heckel/ntfy/util/Util.kt +++ b/app/src/main/java/io/heckel/ntfy/util/Util.kt @@ -498,11 +498,7 @@ fun String.sha256(): String { } fun Button.dangerButton(context: Context) { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - setTextAppearance(R.style.DangerText) - } else { - setTextColor(ContextCompat.getColor(context, Colors.dangerText(context))) - } + setTextColor(ContextCompat.getColor(context, Colors.dangerText(context))) } fun Long.nullIfZero(): Long? { |