Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9eb205b authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Fixed a bug where systemui could crash while cloning" into oc-dev

parents d1f55f63 7f09ce1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2342,7 +2342,7 @@ public class RemoteViews implements Parcelable, Filter {
    }


    public RemoteViews clone() {
    public synchronized RemoteViews clone() {
        Preconditions.checkState(mIsRoot, "RemoteView has been attached to another RemoteView. "
                + "May only clone the root of a RemoteView hierarchy.");

+1 −1
Original line number Diff line number Diff line
@@ -438,7 +438,7 @@ public class NotificationData {
                final int N = mEntries.size();
                for (int i = 0; i < N; i++) {
                    Entry entry = mEntries.valueAt(i);
                    final StatusBarNotification oldSbn = entry.notification.clone();
                    final StatusBarNotification oldSbn = entry.notification.cloneLight();
                    final String overrideGroupKey = getOverrideGroupKey(entry.key);
                    if (!Objects.equals(oldSbn.getOverrideGroupKey(), overrideGroupKey)) {
                        entry.notification.setOverrideGroupKey(overrideGroupKey);