|
|
|
@ -147,7 +147,8 @@ class SearchFragment : SFragment(), StatusActionListener { |
|
|
|
|
status, |
|
|
|
|
alwaysShowSensitiveMedia |
|
|
|
|
), |
|
|
|
|
position |
|
|
|
|
position, |
|
|
|
|
false |
|
|
|
|
) |
|
|
|
|
}, { t -> Log.d(TAG, "Failed to reblog status " + status.id, t) }) |
|
|
|
|
} |
|
|
|
@ -166,7 +167,8 @@ class SearchFragment : SFragment(), StatusActionListener { |
|
|
|
|
status, |
|
|
|
|
alwaysShowSensitiveMedia |
|
|
|
|
), |
|
|
|
|
position |
|
|
|
|
position, |
|
|
|
|
false |
|
|
|
|
) |
|
|
|
|
}, { t -> Log.d(TAG, "Failed to favourite status " + status.id, t) }) |
|
|
|
|
} |
|
|
|
@ -200,7 +202,7 @@ class SearchFragment : SFragment(), StatusActionListener { |
|
|
|
|
if (status != null) { |
|
|
|
|
val newStatus = StatusViewData.Builder(status) |
|
|
|
|
.setIsExpanded(expanded).createStatusViewData() |
|
|
|
|
searchAdapter.updateStatusAtPosition(newStatus, position) |
|
|
|
|
searchAdapter.updateStatusAtPosition(newStatus, position, false) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -209,7 +211,7 @@ class SearchFragment : SFragment(), StatusActionListener { |
|
|
|
|
if (status != null) { |
|
|
|
|
val newStatus = StatusViewData.Builder(status) |
|
|
|
|
.setIsShowingSensitiveContent(isShowing).createStatusViewData() |
|
|
|
|
searchAdapter.updateStatusAtPosition(newStatus, position) |
|
|
|
|
searchAdapter.updateStatusAtPosition(newStatus, position, true) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -228,7 +230,7 @@ class SearchFragment : SFragment(), StatusActionListener { |
|
|
|
|
val updatedStatus = StatusViewData.Builder(status) |
|
|
|
|
.setCollapsed(isCollapsed) |
|
|
|
|
.createStatusViewData() |
|
|
|
|
searchAdapter.updateStatusAtPosition(updatedStatus, position) |
|
|
|
|
searchAdapter.updateStatusAtPosition(updatedStatus, position, false) |
|
|
|
|
searchRecyclerView.post { searchAdapter.notifyItemChanged(position, updatedStatus) } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -257,7 +259,7 @@ class SearchFragment : SFragment(), StatusActionListener { |
|
|
|
|
val newViewData = StatusViewData.Builder(viewData) |
|
|
|
|
.setPoll(poll) |
|
|
|
|
.createStatusViewData() |
|
|
|
|
searchAdapter.updateStatusAtPosition(newViewData, position) |
|
|
|
|
searchAdapter.updateStatusAtPosition(newViewData, position, true) |
|
|
|
|
|
|
|
|
|
}, { t -> Log.d(TAG, "Failed to vote in poll " + status.id, t) }) |
|
|
|
|
} |
|
|
|
|