+ * Example: A button may need to know when the theme changes, so it that + * it can change colors accordingly + *
+ * In order to do this, you can use this class as following: + * LiveViewManager.registerView(QKPreference.THEME, key -> { + * // Change button color + * } + *
+ * You won't need to initialize the button color in addition to registering it
+ * in the LiveViewManager, because registering it will trigger a refresh automatically,
+ * which will initialize it
*/
-public class LiveViewManager implements SharedPreferences.OnSharedPreferenceChangeListener {
-
+public abstract class LiveViewManager {
private static final String TAG = "LiveViewManager";
- private static final boolean LOCAL_LOGV = false;
-
- private static LiveViewManager sInstance;
-
- private static final Set