BottomSheetActivity: use ViewThreadActivity's static call to generate intent

This commit is contained in:
Alibek Omarov 2019-12-14 01:43:35 +03:00
parent 921d83d075
commit dda88dad39

View File

@ -102,9 +102,7 @@ abstract class BottomSheetActivity : BaseActivity() {
open fun viewThread(statusId: String, url: String?) {
if (!isSearching()) {
val intent = Intent(this, ViewThreadActivity::class.java)
intent.putExtra("id", statusId)
intent.putExtra("url", url)
val intent = ViewThreadActivity.startIntent(this, statusId, url)
startActivityWithSlideInAnimation(intent)
}
}