mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Story privacy screen updates.
This commit is contained in:
committed by
Cody Henthorne
parent
15e52a8b88
commit
f341e02fb7
@@ -0,0 +1,15 @@
|
||||
package org.signal.core.util
|
||||
|
||||
import androidx.annotation.Px
|
||||
|
||||
/**
|
||||
* Converts the given Float DP value into Pixels.
|
||||
*/
|
||||
@get:Px
|
||||
val Float.dp: Float get() = DimensionUnit.DP.toPixels(this)
|
||||
|
||||
/**
|
||||
* Converts the given Int DP value into Pixels
|
||||
*/
|
||||
@get:Px
|
||||
val Int.dp: Int get() = this.toFloat().dp.toInt()
|
||||
Reference in New Issue
Block a user