Polls part 1 - displaying in timelines and voting (#1200)
* add entity classes * change data models and add database migration * add polls to StatusViewData * show poll results * add methods for vote handling * add voting interface * enable voting in TimelineFragment * update polls immediately * enable custom emojis for poll options * enable voting from search fragment * add voting layout to detailed statuses * fix tests * enable voting in ViewThreadFragment * enable voting in ConversationsFragment * small refactor for StatusBaseViewHolder
This commit is contained in:
parent
82d547caf8
commit
fd7471f2ab
36 changed files with 1637 additions and 68 deletions
|
|
@ -317,6 +317,12 @@
|
|||
<string name="abbreviated_minutes_ago">%dm</string>
|
||||
<string name="abbreviated_seconds_ago">%ds</string>
|
||||
|
||||
<!--These are for timestamps on polls -->
|
||||
<string name="timespan_days">%d days</string>
|
||||
<string name="timespan_hours">%d hours</string>
|
||||
<string name="timespan_minutes">%d minutes</string>
|
||||
<string name="timespan_seconds">%d seconds</string>
|
||||
|
||||
<string name="follows_you">Follows you</string>
|
||||
<string name="pref_title_alway_show_sensitive_media">Always show sensitive content</string>
|
||||
<string name="title_media">Media</string>
|
||||
|
|
@ -476,4 +482,21 @@
|
|||
|
||||
<string name="notification_clear_text">Are you sure you want to permanently clear all your notifications?</string>
|
||||
|
||||
<string name="poll_info_format">
|
||||
<!-- 15 votes • 1 hour left -->
|
||||
%1$s • %2$s</string>
|
||||
<plurals name="poll_info_votes">
|
||||
<item quantity="one">%s vote</item>
|
||||
<item quantity="other">%s votes</item>
|
||||
</plurals>
|
||||
<string name="poll_info_time_relative">%s left</string>
|
||||
<string name="poll_info_time_absolute">ends at %s</string>
|
||||
<string name="poll_info_closed">closed</string>
|
||||
<string name="poll_option_format">
|
||||
<!-- 15% vote for this! -->
|
||||
<b>%1$d%%</b> %2$s</string>
|
||||
|
||||
<string name="poll_vote">Vote</string>
|
||||
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue