ui: don't call getColor on already resolved attribute
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
		
							parent
							
								
									58e7b7a069
								
							
						
					
					
						commit
						450ef8ce1c
					
				@ -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) }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user