Merge "Only add boolean extra to bundle when the value is false" into tm-dev am: 76f37a5d74 am: 06a00ac6f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18628215 Change-Id: I1312e0090d9e814d2bc5569d4bac5e4cac096ce4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -99,8 +99,10 @@ public class ComponentOptions {
|
||||
public Bundle toBundle() {
|
||||
Bundle b = new Bundle();
|
||||
b.putBoolean(KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED, mPendingIntentBalAllowed);
|
||||
b.putBoolean(KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED_BY_PERMISSION,
|
||||
mPendingIntentBalAllowedByPermission);
|
||||
if (mPendingIntentBalAllowedByPermission) {
|
||||
b.putBoolean(KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED_BY_PERMISSION,
|
||||
mPendingIntentBalAllowedByPermission);
|
||||
}
|
||||
return b;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user