Created
December 28, 2019 21:25
-
-
Save RBusarow/37ea14a6d96652783d81e1f7c8f01565 to your computer and use it in GitHub Desktop.
getValue() function from LiveData source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package androidx.lifecycle; | |
@Nullable | |
public T getValue() { | |
Object data = mData; | |
if (data != NOT_SET) { | |
return (T) data; | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment