Fix various notification display issues and properly support reply.

This commit is contained in:
Cody Henthorne
2021-04-16 17:18:12 -04:00
committed by Greyson Parrelli
parent 5bbc4aea95
commit a843619c5b
17 changed files with 199 additions and 69 deletions

View File

@@ -2,7 +2,9 @@ package org.thoughtcrime.securesms.preferences.widgets;
import androidx.annotation.NonNull;
public class NotificationPrivacyPreference {
import java.util.Objects;
public final class NotificationPrivacyPreference {
private final String preference;
@@ -26,4 +28,17 @@ public class NotificationPrivacyPreference {
public @NonNull String toString() {
return preference;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
final NotificationPrivacyPreference that = (NotificationPrivacyPreference) o;
return Objects.equals(preference, that.preference);
}
@Override
public int hashCode() {
return Objects.hash(preference);
}
}