Chromium Code Reviews| Index: content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java |
| diff --git a/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java b/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java |
| index 7984cdc13ba5c34000aec5ae5acb428625f79cee..3a88b64b8b4c7245df616053eed15d044248ce6b 100644 |
| --- a/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java |
| +++ b/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java |
| @@ -9,6 +9,7 @@ import android.content.Context; |
| import android.graphics.Rect; |
| import android.view.ActionMode; |
| import android.view.Menu; |
| +import android.view.MenuInflater; |
| import android.view.MenuItem; |
| import android.view.View; |
| @@ -141,7 +142,7 @@ public class SelectActionModeCallback implements ActionMode.Callback { |
| } |
| private void createActionMenu(ActionMode mode, Menu menu) { |
| - mode.getMenuInflater().inflate(R.menu.select_action_menu, menu); |
| + new MenuInflater(getContext()).inflate(R.menu.select_action_menu, menu); |
|
jdduke (slow)
2015/05/13 15:24:42
I can't say I understand why this fixes things, bu
jdduke (slow)
2015/05/13 15:26:53
Nevermind, I see now, still lgtm.
|
| if (mIsInsertion) { |
| menu.removeItem(R.id.select_action_menu_select_all); |