summaryrefslogtreecommitdiff
path: root/core/java/android/app/NotificationChannelGroup.java
diff options
context:
space:
mode:
authorJulia Reynolds <juliacr@google.com>2017-02-08 14:47:23 -0500
committerJulia Reynolds <juliacr@google.com>2017-02-08 20:35:14 +0000
commit74856c4a611b337ded6d3eee14c710cf5f7aae77 (patch)
tree36b83ef286610db28a5a1e6cfb830eed9c7312f7 /core/java/android/app/NotificationChannelGroup.java
parent49f38bb4873bbab124b7686397cd52c1027c8287 (diff)
Retrieving groups shouldn't have side effects
Test: runtest systemui-notification, viewing settings Change-Id: Ib43fe6ad2af4763b633ad1690f69d17533915dbb
Diffstat (limited to 'core/java/android/app/NotificationChannelGroup.java')
-rw-r--r--core/java/android/app/NotificationChannelGroup.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/app/NotificationChannelGroup.java b/core/java/android/app/NotificationChannelGroup.java
index 68cac27cb7ca..8854adcfbc92 100644
--- a/core/java/android/app/NotificationChannelGroup.java
+++ b/core/java/android/app/NotificationChannelGroup.java
@@ -170,6 +170,11 @@ public final class NotificationChannelGroup implements Parcelable {
}
@Override
+ public NotificationChannelGroup clone() {
+ return new NotificationChannelGroup(getId(), getName());
+ }
+
+ @Override
public int hashCode() {
int result = getId() != null ? getId().hashCode() : 0;
result = 31 * result + (getName() != null ? getName().hashCode() : 0);