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
|
|
@ -85,7 +85,7 @@ abstract class BottomSheetActivity : BaseActivity() {
|
|||
val searchResult = response.body()
|
||||
if(searchResult != null) {
|
||||
if (searchResult.statuses.isNotEmpty()) {
|
||||
viewThread(searchResult.statuses[0])
|
||||
viewThread(searchResult.statuses[0].id, searchResult.statuses[0].url)
|
||||
return
|
||||
} else if (searchResult.accounts.isNotEmpty()) {
|
||||
viewAccount(searchResult.accounts[0].id)
|
||||
|
|
@ -107,11 +107,11 @@ abstract class BottomSheetActivity : BaseActivity() {
|
|||
onBeginSearch(url)
|
||||
}
|
||||
|
||||
open fun viewThread(status: Status) {
|
||||
open fun viewThread(statusId: String, url: String?) {
|
||||
if (!isSearching()) {
|
||||
val intent = Intent(this, ViewThreadActivity::class.java)
|
||||
intent.putExtra("id", status.actionableId)
|
||||
intent.putExtra("url", status.actionableStatus.url)
|
||||
intent.putExtra("id", statusId)
|
||||
intent.putExtra("url", url)
|
||||
startActivityWithSlideInAnimation(intent)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue