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

Commit c10e0e2d authored by Jason Monk's avatar Jason Monk
Browse files

Fix crash in slices

Test: example app
Change-Id: I0486a1663ceee4dce51a317795919ff9ae045a6f
parent 9cc5b4f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -216,7 +216,7 @@ public final class SliceItem implements Parcelable {
     * @return The slice held by this {@link #FORMAT_ACTION} or {@link #FORMAT_SLICE} SliceItem
     */
    public Slice getSlice() {
        if (getFormat() == FORMAT_ACTION) {
        if (FORMAT_ACTION.equals(getFormat())) {
            return ((Pair<PendingIntent, Slice>) mObj).second;
        }
        return (Slice) mObj;