refactor: remove unused parameter

This commit is contained in:
0x330a 2023-07-26 11:57:26 +10:00
parent 41c05b1e67
commit 2acb7b5169
2 changed files with 8 additions and 4 deletions

View File

@ -24,7 +24,6 @@ import org.session.libsignal.protos.SignalServiceProtos
import org.thoughtcrime.securesms.conversation.v2.utilities.MentionManagerUtilities import org.thoughtcrime.securesms.conversation.v2.utilities.MentionManagerUtilities
import org.thoughtcrime.securesms.database.GroupDatabase import org.thoughtcrime.securesms.database.GroupDatabase
import org.thoughtcrime.securesms.database.LokiAPIDatabase import org.thoughtcrime.securesms.database.LokiAPIDatabase
import org.thoughtcrime.securesms.mms.GlideRequests
import org.thoughtcrime.securesms.util.DateUtils import org.thoughtcrime.securesms.util.DateUtils
import java.util.Locale import java.util.Locale
import javax.inject.Inject import javax.inject.Inject
@ -77,8 +76,7 @@ class ConversationActionBarView : LinearLayout {
threadId: Long, threadId: Long,
recipient: Recipient, recipient: Recipient,
config: ExpirationConfiguration? = null, config: ExpirationConfiguration? = null,
openGroup: OpenGroup? = null, openGroup: OpenGroup? = null
glide: GlideRequests
) { ) {
this.delegate = delegate this.delegate = delegate
@DimenRes val sizeID: Int = if (recipient.isClosedGroupRecipient) { @DimenRes val sizeID: Int = if (recipient.isClosedGroupRecipient) {

View File

@ -578,7 +578,13 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
actionBar.title = "" actionBar.title = ""
actionBar.setDisplayHomeAsUpEnabled(true) actionBar.setDisplayHomeAsUpEnabled(true)
actionBar.setHomeButtonEnabled(true) actionBar.setHomeButtonEnabled(true)
binding!!.toolbarContent.bind(this, viewModel.threadId, recipient, viewModel.expirationConfiguration, viewModel.openGroup, glide) binding!!.toolbarContent.bind(
this,
viewModel.threadId,
recipient,
viewModel.expirationConfiguration,
viewModel.openGroup
)
maybeUpdateToolbar(recipient) maybeUpdateToolbar(recipient)
} }