parent
3edc47aa4a
commit
712f61b15a
2 changed files with 11 additions and 0 deletions
|
@ -82,6 +82,8 @@ class ListStatusAccessibilityDelegate(
|
||||||
}
|
}
|
||||||
if (status.reblogsCount > 0) info.addAction(openRebloggedByAction)
|
if (status.reblogsCount > 0) info.addAction(openRebloggedByAction)
|
||||||
if (status.favouritesCount > 0) info.addAction(openFavsAction)
|
if (status.favouritesCount > 0) info.addAction(openFavsAction)
|
||||||
|
|
||||||
|
info.addAction(moreAction)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -150,6 +152,9 @@ class ListStatusAccessibilityDelegate(
|
||||||
interrupt()
|
interrupt()
|
||||||
statusActionListener.onShowFavs(pos)
|
statusActionListener.onShowFavs(pos)
|
||||||
}
|
}
|
||||||
|
R.id.action_more -> {
|
||||||
|
statusActionListener.onMore(host, pos)
|
||||||
|
}
|
||||||
else -> return super.performAccessibilityAction(host, action, args)
|
else -> return super.performAccessibilityAction(host, action, args)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
@ -311,5 +316,10 @@ class ListStatusAccessibilityDelegate(
|
||||||
R.id.action_open_faved_by,
|
R.id.action_open_faved_by,
|
||||||
context.getString(R.string.action_open_faved_by))
|
context.getString(R.string.action_open_faved_by))
|
||||||
|
|
||||||
|
private val moreAction = AccessibilityActionCompat(
|
||||||
|
R.id.action_more,
|
||||||
|
context.getString(R.string.action_more)
|
||||||
|
)
|
||||||
|
|
||||||
private data class LinkSpanInfo(val text: String, val link: String)
|
private data class LinkSpanInfo(val text: String, val link: String)
|
||||||
}
|
}
|
|
@ -22,4 +22,5 @@
|
||||||
<item name="action_open_reblogger" type="id" />
|
<item name="action_open_reblogger" type="id" />
|
||||||
<item name="action_open_reblogged_by" type="id" />
|
<item name="action_open_reblogged_by" type="id" />
|
||||||
<item name="action_open_faved_by" type="id" />
|
<item name="action_open_faved_by" type="id" />
|
||||||
|
<item name="action_more" type="id" />
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in a new issue