Merge "Only add boolean extra to bundle when the value is false" into tm-dev am: 76f37a5d74

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18628215

Change-Id: I767dac31c18cbe7c6ac1ac8fed3b676bd6239613
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ricky Wai
2022-05-30 10:20:27 +00:00
committed by Automerger Merge Worker

View File

@@ -99,8 +99,10 @@ public class ComponentOptions {
public Bundle toBundle() { public Bundle toBundle() {
Bundle b = new Bundle(); Bundle b = new Bundle();
b.putBoolean(KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED, mPendingIntentBalAllowed); b.putBoolean(KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED, mPendingIntentBalAllowed);
if (mPendingIntentBalAllowedByPermission) {
b.putBoolean(KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED_BY_PERMISSION, b.putBoolean(KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED_BY_PERMISSION,
mPendingIntentBalAllowedByPermission); mPendingIntentBalAllowedByPermission);
}
return b; return b;
} }
} }