am a517e81e: Merge "Fix crash on pasting text in a WebView" into lmp-mr1-dev
* commit 'a517e81e2b1594da3e12c0547aabac5f357ce97b': Fix crash on pasting text in a WebView
This commit is contained in:
@@ -993,6 +993,13 @@ public class WindowDecorActionBar extends ActionBar implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void invalidate() {
|
public void invalidate() {
|
||||||
|
if (mActionMode != this) {
|
||||||
|
// Not the active action mode - no-op. It's possible we are
|
||||||
|
// currently deferring onDestroy, so the app doesn't yet know we
|
||||||
|
// are going away and is trying to use us. That's also a no-op.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mMenu.stopDispatchingItemsChanged();
|
mMenu.stopDispatchingItemsChanged();
|
||||||
try {
|
try {
|
||||||
mCallback.onPrepareActionMode(this, mMenu);
|
mCallback.onPrepareActionMode(this, mMenu);
|
||||||
|
|||||||
Reference in New Issue
Block a user