Fix for Tag editor coloring bugs
This commit is contained in:
parent
8fbcf5ffb4
commit
a457d88da8
1 changed files with 5 additions and 5 deletions
|
|
@ -200,7 +200,7 @@ public abstract class AbsTagEditorActivity extends AbsBaseActivity {
|
|||
protected abstract void save();
|
||||
|
||||
private void restoreStandardColors() {
|
||||
final int vibrantColor = DialogUtils.resolveColor(this, R.attr.colorPrimary);
|
||||
final int vibrantColor = PreferenceUtils.getInstance(this).getThemeColorPrimary();
|
||||
paletteColorPrimary = vibrantColor;
|
||||
observableScrollViewCallbacks.onScrollChanged(scrollView.getCurrentScrollY(), false, false);
|
||||
setStatusBarColor(ColorChooserDialog.shiftColorDown(vibrantColor), false);
|
||||
|
|
@ -249,12 +249,12 @@ public abstract class AbsTagEditorActivity extends AbsBaseActivity {
|
|||
scrollView.setPadding(0, Util.getActionBarSize(this), 0, 0);
|
||||
observableScrollViewCallbacks.onScrollChanged(scrollView.getCurrentScrollY(), false, false);
|
||||
|
||||
int primary = getIntent().getIntExtra(AppKeys.E_PALETTE,
|
||||
paletteColorPrimary = getIntent().getIntExtra(AppKeys.E_PALETTE,
|
||||
PreferenceUtils.getInstance(this).getThemeColorPrimary());
|
||||
toolBar.setBackgroundColor(primary);
|
||||
header.setBackgroundColor(primary);
|
||||
toolBar.setBackgroundColor(paletteColorPrimary);
|
||||
header.setBackgroundColor(paletteColorPrimary);
|
||||
|
||||
int primaryDark = ColorChooserDialog.shiftColorDown(primary);
|
||||
int primaryDark = ColorChooserDialog.shiftColorDown(paletteColorPrimary);
|
||||
setStatusBarColor(primaryDark, false);
|
||||
if (Util.hasLollipopSDK())
|
||||
getWindow().setNavigationBarColor(primaryDark);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue