am 26b27cab: Merge "Fix crash in ToolbarActionBar when setting null custom view" into mnc-dev
* commit '26b27cab811e2c91b6e229cf5bfcf5846fb6d094': Fix crash in ToolbarActionBar when setting null custom view
This commit is contained in:
@@ -83,7 +83,9 @@ public class ToolbarActionBar extends ActionBar {
|
||||
|
||||
@Override
|
||||
public void setCustomView(View view, LayoutParams layoutParams) {
|
||||
view.setLayoutParams(layoutParams);
|
||||
if (view != null) {
|
||||
view.setLayoutParams(layoutParams);
|
||||
}
|
||||
mDecorToolbar.setCustomView(view);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user