Skip to content

Commit 450ef8c

Browse files
committed
ui: don't call getColor on already resolved attribute
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 58e7b7a commit 450ef8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class LogViewerActivity : AppCompatActivity() {
7171
yearFormatter.format(Date())
7272
}
7373

74-
private val defaultColor by lazy { ResourcesCompat.getColor(resources, resolveAttribute(com.google.android.material.R.attr.colorOnSurface), theme) }
74+
private val defaultColor by lazy { resolveAttribute(com.google.android.material.R.attr.colorOnSurface) }
7575

7676
private val debugColor by lazy { ResourcesCompat.getColor(resources, R.color.debug_tag_color, theme) }
7777

0 commit comments

Comments
 (0)