Fix bug where long press menu text is white on gray for dark backgrounds.

Bug: 69723025
Change-Id: Iba9704b3f07b2156d449734b8fd750f4238da8e7
This commit is contained in:
Jon Miranda 2017-11-27 14:23:32 -08:00
parent af3a327779
commit b1b2b45a69
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ public class UiFactory {
}
public static void onWorkspaceLongPress(Launcher launcher) {
PopupMenu menu = new PopupMenu(launcher, launcher.getWorkspace().getPageIndicator());
PopupMenu menu = new PopupMenu(launcher.getApplicationContext(),
launcher.getWorkspace().getPageIndicator());
menu.getMenu().add(R.string.wallpaper_button_text).setOnMenuItemClickListener((i) -> {
launcher.onClickWallpaperPicker(null);
return true;