Commit 7e75d2f4 authored by Clark DuVall's avatar Clark DuVall Committed by Commit Bot

[WebLayer] Fix text in long-press context menu

Some of the menu items were showing up as @<id> because the wrong
Resources were used to resolve IDs from the menu. This is fixed by
overriding getTheme() if we have a resources override context, so
anybody who uses the resources from the theme will get the correct
object.

Bug: 1046158
Change-Id: I3e22f385ba01eb5cc9bc49c7cf9d98e98386ccf7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024151Reviewed-by: default avatarBo <boliu@chromium.org>
Commit-Queue: Clark DuVall <cduvall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735758}
parent f270e334
......@@ -151,5 +151,13 @@ public class ClassLoaderContextWrapperFactory {
}
return getBaseContext().getResources();
}
@Override
public Resources.Theme getTheme() {
if (sResourceOverrideContext != null) {
return sResourceOverrideContext.getTheme();
}
return getBaseContext().getTheme();
}
}
}
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