Commit 1980ae7d authored by Finnur Thorarinsson's avatar Finnur Thorarinsson Committed by Commit Bot

[Android]: Fix Add to Homescreen crash for CCT.

Bug: 1130909
Change-Id: I63bb59f057deffd849469538336f959e2b644d99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454084Reviewed-by: default avatarPeter Conn <peconn@chromium.org>
Commit-Queue: Finnur Thorarinsson <finnur@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814658}
parent b13e4926
......@@ -241,11 +241,12 @@ public class CustomTabAppMenuPropertiesDelegate extends AppMenuPropertiesDelegat
@Override
public @Nullable Bundle getBundleForMenuItem(MenuItem item) {
Bundle itemBundle = super.getBundleForMenuItem(item);
if (!mItemToIndexMap.containsKey(item)) {
return null;
return itemBundle;
}
Bundle itemBundle = super.getBundleForMenuItem(item);
if (itemBundle == null) {
itemBundle = new Bundle();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment