Story privacy screen updates.

This commit is contained in:
Alex Hart
2022-08-18 10:11:42 -03:00
committed by Cody Henthorne
parent 15e52a8b88
commit f341e02fb7
74 changed files with 800 additions and 423 deletions

View File

@@ -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()