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

Commit 92cc5b1d authored by Dhavalkumar Chaudhary's avatar Dhavalkumar Chaudhary
Browse files

Parcelled/un-parcel the boolean variable in holder to skip refCounts

for unstable connections

Bug: 395544023

Test: atest -c ContentProviderTest
Test: atest -c ActivityManagerServiceTest
Flag: android.app.skip_ref_content_provider
Change-Id: If6a12381df92be9cce8c9a0552214c7bf89ce56f
parent 6fd431f0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ public class ContentProviderHolder implements Parcelable {
        dest.writeStrongBinder(connection);
        dest.writeInt(noReleaseNeeded ? 1 : 0);
        dest.writeInt(mLocal ? 1 : 0);
        dest.writeInt(noReleaseNeededIfUnstable ? 1 : 0);
    }

    public static final @android.annotation.NonNull Parcelable.Creator<ContentProviderHolder> CREATOR
@@ -89,5 +90,6 @@ public class ContentProviderHolder implements Parcelable {
        connection = source.readStrongBinder();
        noReleaseNeeded = source.readInt() != 0;
        mLocal = source.readInt() != 0;
        noReleaseNeededIfUnstable = source.readInt() != 0;
    }
}