From 450ef8ce1cf51f41b1f3b9cc96632b13c980e2ea Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 28 Mar 2023 15:45:50 +0200 Subject: ui: don't call getColor on already resolved attribute Signed-off-by: Jason A. Donenfeld --- ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/src/main/java') diff --git a/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt b/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt index 2493d281..465f3b9d 100644 --- a/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt +++ b/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt @@ -71,7 +71,7 @@ class LogViewerActivity : AppCompatActivity() { yearFormatter.format(Date()) } - private val defaultColor by lazy { ResourcesCompat.getColor(resources, resolveAttribute(com.google.android.material.R.attr.colorOnSurface), theme) } + private val defaultColor by lazy { resolveAttribute(com.google.android.material.R.attr.colorOnSurface) } private val debugColor by lazy { ResourcesCompat.getColor(resources, R.color.debug_tag_color, theme) } -- cgit v1.2.3