Fix duplicate notification icon snapshots

This commit is contained in:
ajp_anton
2026-05-04 14:52:22 +00:00
parent 568559614b
commit 5716224a8c
@@ -336,7 +336,13 @@ final class SnapshotRenderer {
private String normalizedKeyFor(SnapshotSource source, int order) { private String normalizedKeyFor(SnapshotSource source, int order) {
String key = keyFor(source, order); String key = keyFor(source, order);
String kind = signalKind(source.view(), key); String kind = signalKind(source.view(), key);
return kind != null ? "signal:" + kind : key; if (kind != null) {
return "signal:" + kind;
}
if (source.mode() == SnapshotMode.NOTIFICATION_DRAWABLE) {
return key + "@0x" + Integer.toHexString(System.identityHashCode(source.view()));
}
return key;
} }
private String keyFor(SnapshotSource source, int order) { private String keyFor(SnapshotSource source, int order) {