Tab customization & direct messages tab (#1012)
* custom tabs * custom tabs interface * implement custom tab functionality * add database migration * fix bugs, improve ThemeUtils nullability handling * implement conversationsfragment * setup ConversationViewHolder * implement favs * add button functionality * revert 10.json * revert item_status_notification.xml * implement more menu, replying, fix stuff, clean up * fix tests * fix bug with expanding statuses * min and max number of tabs * settings support, fix bugs * database migration * fix scrolling to top after refresh * fix bugs * fix warning in item_conversation
This commit is contained in:
parent
adf573646e
commit
e371fa0e24
75 changed files with 3663 additions and 296 deletions
|
@ -196,7 +196,7 @@ class BottomSheetActivityTest {
|
|||
fun search_inIdealConditions_returnsRequestedResults_forStatus() {
|
||||
activity.viewUrl(statusQuery)
|
||||
statusCallback.invokeCallback()
|
||||
Assert.assertEquals(status, activity.status)
|
||||
Assert.assertEquals(status.id, activity.statusId)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -250,7 +250,7 @@ class BottomSheetActivityTest {
|
|||
|
||||
// ensure that the result of the status search was recorded
|
||||
// and the account search wasn't
|
||||
Assert.assertEquals(status, activity.status)
|
||||
Assert.assertEquals(status.id, activity.statusId)
|
||||
Assert.assertEquals(null, activity.accountId)
|
||||
}
|
||||
|
||||
|
@ -288,7 +288,7 @@ class BottomSheetActivityTest {
|
|||
|
||||
class FakeBottomSheetActivity(api: MastodonApi) : BottomSheetActivity() {
|
||||
|
||||
var status: Status? = null
|
||||
var statusId: String? = null
|
||||
var accountId: String? = null
|
||||
var link: String? = null
|
||||
|
||||
|
@ -307,8 +307,8 @@ class BottomSheetActivityTest {
|
|||
this.accountId = id
|
||||
}
|
||||
|
||||
override fun viewThread(status: Status) {
|
||||
this.status = status
|
||||
override fun viewThread(statusId: String, url: String?) {
|
||||
this.statusId = statusId
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue