From 13197b77d454c392e70eac5cc1772677c8d7f194 Mon Sep 17 00:00:00 2001 From: Aidan Follestad Date: Sat, 20 May 2017 20:19:29 -0500 Subject: [PATCH] 0.4.4, resolves #21 --- README.md | 2 +- dependencies.gradle | 4 ++-- .../java/com/afollestad/aesthetic/AestheticToolbar.java | 8 +------- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index fa2eb3a..4f45889 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Add this to your module's `build.gradle` file: ```gradle dependencies { // ... other dependencies - compile 'com.afollestad:aesthetic:0.4.3' + compile 'com.afollestad:aesthetic:0.4.4' } ``` diff --git a/dependencies.gradle b/dependencies.gradle index 86338ca..36bb77c 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -2,8 +2,8 @@ ext.versions = [ minSdk : 16, compileSdk : 25, buildTools : '25.0.3', - publishVersion : '0.4.3', - publishVersionCode: 15, + publishVersion : '0.4.4', + publishVersionCode: 16, gradlePlugin : '2.3.2', supportLib : '25.3.1', diff --git a/library/src/main/java/com/afollestad/aesthetic/AestheticToolbar.java b/library/src/main/java/com/afollestad/aesthetic/AestheticToolbar.java index a51621e..86e2835 100644 --- a/library/src/main/java/com/afollestad/aesthetic/AestheticToolbar.java +++ b/library/src/main/java/com/afollestad/aesthetic/AestheticToolbar.java @@ -26,21 +26,14 @@ public class AestheticToolbar extends Toolbar { public AestheticToolbar(Context context) { super(context); - init(); } public AestheticToolbar(Context context, @Nullable AttributeSet attrs) { super(context, attrs); - init(); } public AestheticToolbar(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); - init(); - } - - private void init() { - onColorUpdated = PublishSubject.create(); } private void invalidateColors(BgIconColorState state) { @@ -80,6 +73,7 @@ public void setNavigationIcon(@Nullable Drawable icon, @ColorInt int color) { @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); + onColorUpdated = PublishSubject.create(); subscription = Observable.combineLatest( Aesthetic.get().colorPrimary(),