mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-01 13:52:29 +00:00
fix: blocked contacts click handler being overridden by something
This commit is contained in:
@@ -3,9 +3,9 @@ package org.thoughtcrime.securesms.preferences
|
|||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.view.View
|
|
||||||
import androidx.preference.PreferenceCategory
|
import androidx.preference.PreferenceCategory
|
||||||
import androidx.preference.PreferenceViewHolder
|
import androidx.preference.PreferenceViewHolder
|
||||||
|
import network.loki.messenger.databinding.BlockedContactsPreferenceBinding
|
||||||
|
|
||||||
class BlockedContactsPreference @JvmOverloads constructor(
|
class BlockedContactsPreference @JvmOverloads constructor(
|
||||||
context: Context,
|
context: Context,
|
||||||
@@ -14,8 +14,8 @@ class BlockedContactsPreference @JvmOverloads constructor(
|
|||||||
|
|
||||||
override fun onBindViewHolder(holder: PreferenceViewHolder) {
|
override fun onBindViewHolder(holder: PreferenceViewHolder) {
|
||||||
super.onBindViewHolder(holder)
|
super.onBindViewHolder(holder)
|
||||||
|
val binding = BlockedContactsPreferenceBinding.bind(holder.itemView)
|
||||||
holder.itemView.setOnClickListener {
|
binding.blockedContactButton.setOnClickListener {
|
||||||
val intent = Intent(context, BlockedContactsActivity::class.java)
|
val intent = Intent(context, BlockedContactsActivity::class.java)
|
||||||
context.startActivity(intent)
|
context.startActivity(intent)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
android:layout_marginVertical="@dimen/medium_spacing"
|
android:layout_marginVertical="@dimen/medium_spacing"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
<Button
|
<Button
|
||||||
|
android:id="@+id/blockedContactButton"
|
||||||
android:contentDescription="@string/AccessibilityId_blocked_contacts"
|
android:contentDescription="@string/AccessibilityId_blocked_contacts"
|
||||||
style="@style/Widget.Session.Button.Common.Borderless"
|
style="@style/Widget.Session.Button.Common.Borderless"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class ClosedGroupPollerV2 {
|
|||||||
val groupID = GroupUtil.doubleEncodeGroupID(groupPublicKey)
|
val groupID = GroupUtil.doubleEncodeGroupID(groupPublicKey)
|
||||||
val threadID = storage.getThreadId(groupID)
|
val threadID = storage.getThreadId(groupID)
|
||||||
if (threadID == null) {
|
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)
|
stopPolling(groupPublicKey)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user