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

Commit 79ff332c authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Parcel: noop upon double recycle" am: 0c35c51d

parents e7ff0f5c 0c35c51d
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -562,9 +562,11 @@ public final class Parcel {
     */
     */
    public final void recycle() {
    public final void recycle() {
        if (mRecycled) {
        if (mRecycled) {
            Log.w(TAG, "Recycle called on unowned Parcel. (recycle twice?) Here: "
            Log.wtf(TAG, "Recycle called on unowned Parcel. (recycle twice?) Here: "
                    + Log.getStackTraceString(new Throwable())
                    + Log.getStackTraceString(new Throwable())
                    + " Original recycle call (if DEBUG_RECYCLE): ", mStack);
                    + " Original recycle call (if DEBUG_RECYCLE): ", mStack);

            return;
        }
        }
        mRecycled = true;
        mRecycled = true;