Commit 62077d8c authored by John Reck's avatar John Reck
Browse files

Add null check

 Bug: 5452795

Change-Id: I8b43875e0e72665384c974c502d8f38946f0c6f1
parent 132eedfc
......@@ -521,6 +521,9 @@ public class PhoneUi extends BaseUi {
}
public void set(TitleBar tbar, WebView web) {
if (tbar == null || web == null) {
return;
}
if (tbar.getWidth() > 0 && tbar.getEmbeddedHeight() > 0) {
if (mTitleBarBitmap == null
|| mTitleBarBitmap.getWidth() != tbar.getWidth()
......
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