mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
fix: blocked contacts click handler being overridden by something
This commit is contained in:
parent
7ff45cde86
commit
608572fc42
@ -3,9 +3,9 @@ package org.thoughtcrime.securesms.preferences
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.util.AttributeSet
|
||||
import android.view.View
|
||||
import androidx.preference.PreferenceCategory
|
||||
import androidx.preference.PreferenceViewHolder
|
||||
import network.loki.messenger.databinding.BlockedContactsPreferenceBinding
|
||||
|
||||
class BlockedContactsPreference @JvmOverloads constructor(
|
||||
context: Context,
|
||||
@ -14,8 +14,8 @@ class BlockedContactsPreference @JvmOverloads constructor(
|
||||
|
||||
override fun onBindViewHolder(holder: PreferenceViewHolder) {
|
||||
super.onBindViewHolder(holder)
|
||||
|
||||
holder.itemView.setOnClickListener {
|
||||
val binding = BlockedContactsPreferenceBinding.bind(holder.itemView)
|
||||
binding.blockedContactButton.setOnClickListener {
|
||||
val intent = Intent(context, BlockedContactsActivity::class.java)
|
||||
context.startActivity(intent)
|
||||
}
|
||||
|
@ -5,6 +5,7 @@
|
||||
android:layout_marginVertical="@dimen/medium_spacing"
|
||||
android:layout_height="wrap_content">
|
||||
<Button
|
||||
android:id="@+id/blockedContactButton"
|
||||
android:contentDescription="@string/AccessibilityId_blocked_contacts"
|
||||
style="@style/Widget.Session.Button.Common.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -81,7 +81,7 @@ class ClosedGroupPollerV2 {
|
||||
val groupID = GroupUtil.doubleEncodeGroupID(groupPublicKey)
|
||||
val threadID = storage.getThreadId(groupID)
|
||||
if (threadID == null) {
|
||||
Log.d("Loki", "Stopping group poller due to missing thread for closed group: $groupPublicKey.")
|
||||
Log.d("Loki", "Stopping group poller due to missing thread for closed group: ${groupPublicKey.take(4)}...${groupPublicKey.takeLast(4)}.")
|
||||
stopPolling(groupPublicKey)
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user