kopia lustrzana https://github.com/ryukoposting/Signal-Android
16 wiersze
458 B
Kotlin
16 wiersze
458 B
Kotlin
package org.thoughtcrime.securesms.components.menu
|
|
|
|
import androidx.annotation.ColorRes
|
|
import androidx.annotation.DrawableRes
|
|
import org.thoughtcrime.securesms.R
|
|
|
|
/**
|
|
* Represents an action to be rendered via [SignalContextMenu] or [SignalBottomActionBar]
|
|
*/
|
|
data class ActionItem @JvmOverloads constructor(
|
|
@DrawableRes val iconRes: Int,
|
|
val title: CharSequence,
|
|
@ColorRes val tintRes: Int = R.color.signal_colorOnSurface,
|
|
val action: Runnable
|
|
)
|