summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-01-30 00:20:29 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-01-30 00:20:29 -0800
commit1e2515d595caad7fde9a79152b29656c2060fdff (patch)
treed087c480604d0e534072f781ab090b027a99048a
parentce04bbf17f2bee13b2a7f783333475920dfb6246 (diff)
parente1226b0f04c5a5dbb69fc9aa053a27647758b663 (diff)
Merge "Sync implementation with BaseBundle change" into main
-rw-r--r--libs/binder/PersistableBundle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/binder/PersistableBundle.cpp b/libs/binder/PersistableBundle.cpp
index abb6612a1c..99f9726c5e 100644
--- a/libs/binder/PersistableBundle.cpp
+++ b/libs/binder/PersistableBundle.cpp
@@ -119,6 +119,9 @@ status_t PersistableBundle::writeToParcel(Parcel* parcel) const {
}
RETURN_IF_FAILED(parcel->writeInt32(static_cast<int32_t>(length)));
parcel->setDataPosition(end_pos);
+ // write mHasIntent to be consistent with BaseBundle.writeToBundle. But it would always be
+ // false since PersistableBundle won't contain an intent.
+ RETURN_IF_FAILED(parcel->writeBool(false));
return NO_ERROR;
}
@@ -473,6 +476,8 @@ status_t PersistableBundle::readFromParcelInner(const Parcel* parcel, size_t len
}
}
}
+ // result intentional ignored since it will always be false;
+ RETURN_IF_FAILED(parcel->readBool());
return NO_ERROR;
}