Show open icon for tracking links
Add the open icon to parsed data values that open an external link so tracking numbers visibly indicate that tapping them opens the tracking website.
This commit is contained in:
@@ -660,6 +660,15 @@ class DecodeActivity : AbstractBaseActivity() {
|
||||
)
|
||||
)
|
||||
this.text = text
|
||||
if (item.link != null) {
|
||||
setCompoundDrawablesWithIntrinsicBounds(
|
||||
0,
|
||||
0,
|
||||
R.drawable.ic_action_open,
|
||||
0
|
||||
)
|
||||
compoundDrawablePadding = spaceBetween / 2
|
||||
}
|
||||
}
|
||||
|
||||
val alpha = if (dimmed) 0.5f else 1f
|
||||
|
||||
Reference in New Issue
Block a user