Commit e837a5d2 authored by Ted Choc's avatar Ted Choc Committed by Commit Bot

Speculative fix for Android moveTaskToBack framework bug.

BUG=817567

Change-Id: Ic9c599df1b2e3245b1d480cea29271c8d0f673a8
Reviewed-on: https://chromium-review.googlesource.com/956253Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542163}
parent ceae97b0
...@@ -1962,6 +1962,17 @@ public class ChromeTabbedActivity ...@@ -1962,6 +1962,17 @@ public class ChromeTabbedActivity
} }
} }
@Override
public boolean moveTaskToBack(boolean nonRoot) {
try {
return super.moveTaskToBack(nonRoot);
} catch (NullPointerException e) {
// Work around framework bug described in https://crbug.com/817567.
finish();
return true;
}
}
/** /**
* Launch a URL from an intent. * Launch a URL from an intent.
* *
......
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