/** * Update the primary color used by the model to the given color. * * @param color The primary color for the current tab. */ public void updatePrimaryColor(int color) { boolean colorChanged = mToolbarModel.getPrimaryColor() != color; if (!colorChanged) return; mToolbarModel.setPrimaryColor(color); mToolbar.onPrimaryColorChanged(); }