From cdf0483bd3190a670f248531880aa737057996ae Mon Sep 17 00:00:00 2001 From: Cyrus Bakhtiari-Haftlang Date: Tue, 5 May 2020 09:47:56 +0200 Subject: [PATCH] DistinctMutableLiveData now extends MutableLiveData --- .idea/codeStyles/Project.xml | 122 ++++++++++++++++++ .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/misc.xml | 9 ++ .idea/runConfigurations.xml | 12 ++ .../lives/DistinctMutableLiveData.java | 4 +- 5 files changed, 150 insertions(+), 2 deletions(-) create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/runConfigurations.xml diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..88ea3aa --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,122 @@ + + + + + + + + + +
+ + + + xmlns:android + + ^$ + + + +
+
+ + + + xmlns:.* + + ^$ + + + BY_NAME + +
+
+ + + + .*:id + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + .*:name + + http://schemas.android.com/apk/res/android + + + +
+
+ + + + name + + ^$ + + + +
+
+ + + + style + + ^$ + + + +
+
+ + + + .* + + ^$ + + + BY_NAME + +
+
+ + + + .* + + http://schemas.android.com/apk/res/android + + + ANDROID_ATTRIBUTE_ORDER + +
+
+ + + + .* + + .* + + + BY_NAME + +
+
+
+
+ + +
+
\ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..37a7509 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/lives/src/main/java/se/ingenuity/lives/DistinctMutableLiveData.java b/lives/src/main/java/se/ingenuity/lives/DistinctMutableLiveData.java index 383ea12..640aa97 100644 --- a/lives/src/main/java/se/ingenuity/lives/DistinctMutableLiveData.java +++ b/lives/src/main/java/se/ingenuity/lives/DistinctMutableLiveData.java @@ -1,11 +1,11 @@ package se.ingenuity.lives; import androidx.annotation.NonNull; -import androidx.lifecycle.LiveData; +import androidx.lifecycle.MutableLiveData; import java.util.concurrent.atomic.AtomicBoolean; -public class DistinctMutableLiveData extends LiveData { +public class DistinctMutableLiveData extends MutableLiveData { @NonNull private final Object dataLock = new Object();