From 12e279473f574090db0731d71af33fd19b7097b3 Mon Sep 17 00:00:00 2001 From: Aidan Follestad Date: Fri, 19 May 2017 15:05:49 -0500 Subject: [PATCH] JavaDocs --- .../com/afollestad/aesthetic/Aesthetic.java | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/library/src/main/java/com/afollestad/aesthetic/Aesthetic.java b/library/src/main/java/com/afollestad/aesthetic/Aesthetic.java index 8b3ec12..92620e0 100644 --- a/library/src/main/java/com/afollestad/aesthetic/Aesthetic.java +++ b/library/src/main/java/com/afollestad/aesthetic/Aesthetic.java @@ -1,5 +1,11 @@ package com.afollestad.aesthetic; +import static com.afollestad.aesthetic.Rx.onErrorLogAndRethrow; +import static com.afollestad.aesthetic.Util.isColorLight; +import static com.afollestad.aesthetic.Util.resolveColor; +import static com.afollestad.aesthetic.Util.setLightStatusBarCompat; +import static com.afollestad.aesthetic.Util.setNavBarColorCompat; + import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; @@ -19,12 +25,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; - import com.f2prateek.rx.preferences2.RxSharedPreferences; - -import java.util.ArrayList; -import java.util.List; - import io.reactivex.Observable; import io.reactivex.ObservableSource; import io.reactivex.disposables.CompositeDisposable; @@ -32,12 +33,8 @@ import io.reactivex.functions.Consumer; import io.reactivex.functions.Function; import io.reactivex.functions.Predicate; - -import static com.afollestad.aesthetic.Rx.onErrorLogAndRethrow; -import static com.afollestad.aesthetic.Util.isColorLight; -import static com.afollestad.aesthetic.Util.resolveColor; -import static com.afollestad.aesthetic.Util.setLightStatusBarCompat; -import static com.afollestad.aesthetic.Util.setNavBarColorCompat; +import java.util.ArrayList; +import java.util.List; /** @author Aidan Follestad (afollestad) */ @SuppressWarnings({"WeakerAccess", "unused"}) @@ -242,6 +239,7 @@ public void accept(@io.reactivex.annotations.NonNull Integer color) { onErrorLogAndRethrow())); } + /** Returns true if this method has never been called before. */ public static boolean isFirstTime() { boolean firstTime = instance.prefs.getBoolean(KEY_FIRST_TIME, true); instance.editor.putBoolean(KEY_FIRST_TIME, false).commit(); @@ -759,6 +757,7 @@ public Aesthetic snackbarActionTextColorRes(@ColorRes int color) { return colorCardViewBackground(ContextCompat.getColor(context, color)); } + /** Notifies all listening views that theme properties have been updated. */ public void apply() { editor.commit(); }