Add link to official subreddit

This commit is contained in:
arkon
2021-05-25 18:33:56 -04:00
parent a1a4916abf
commit 8af8c57bb4
5 changed files with 143 additions and 107 deletions

View File

@@ -55,7 +55,16 @@ inline fun View.snack(
* @param stringRes String resource for tooltip.
*/
inline fun View.setTooltip(@StringRes stringRes: Int) {
TooltipCompat.setTooltipText(this, context.getString(stringRes))
setTooltip(context.getString(stringRes))
}
/**
* Adds a tooltip shown on long press.
*
* @param text Text for tooltip.
*/
inline fun View.setTooltip(text: String) {
TooltipCompat.setTooltipText(this, text)
}
/**