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:
Konrad Pozniak 2019-04-22 10:11:00 +02:00 committed by GitHub
commit fd7471f2ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 1637 additions and 68 deletions

View file

@ -84,7 +84,8 @@ class BottomSheetActivityTest {
ArrayList(),
arrayOf(),
null,
pinned = false
pinned = false,
poll = null
)
private val statusCallback = FakeSearchResults(status)

View file

@ -305,7 +305,8 @@ class TimelineRepositoryTest {
inReplyToId = null,
pinned = false,
reblog = null,
url = "http://example.com/statuses/$id"
url = "http://example.com/statuses/$id",
poll = null
)
}