Fix duplicate notification icon snapshots
This commit is contained in:
@@ -336,7 +336,13 @@ final class SnapshotRenderer {
|
||||
private String normalizedKeyFor(SnapshotSource source, int order) {
|
||||
String key = keyFor(source, order);
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user