Commit 54a6c709 authored by ckitagawa's avatar ckitagawa Committed by Commit Bot

[Paint Preview] Fix low-volume crash

This CL fixes a low-volume crash in paint preview code. Where the
tab might be null when checking if shown and needs badge.

This CL was uploaded by git cl split.

Change-Id: I69c03fb298c1d70b13368d6f9056d744231caee2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2401321
Commit-Queue: Mehran Mahmoudi <mahmoudi@chromium.org>
Reviewed-by: default avatarMehran Mahmoudi <mahmoudi@chromium.org>
Auto-Submit: Calder Kitagawa <ckitagawa@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805427}
parent 835f0bc3
......@@ -234,6 +234,8 @@ public class TabbedPaintPreviewPlayer implements TabViewProvider, UserData {
}
public boolean isShowingAndNeedsBadge() {
if (mTab == null) return false;
return mTab.getTabViewManager().isShowing(this);
}
......
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