diff --git a/QKSMS/src/main/java/com/moez/QKSMS/common/LiveViewManager.java b/QKSMS/src/main/java/com/moez/QKSMS/common/LiveViewManager.java index c23aa157..26194b3e 100644 --- a/QKSMS/src/main/java/com/moez/QKSMS/common/LiveViewManager.java +++ b/QKSMS/src/main/java/com/moez/QKSMS/common/LiveViewManager.java @@ -13,34 +13,23 @@ import java.util.WeakHashMap; /** * Allows views to register for updates on preferences - * + *
* 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 + * // 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 = "ThemedViewManager";
- private static LiveViewManager sInstance;
- private static final HashMap