Created
May 27, 2018 19:11
-
-
Save joseprl89/3474e9c187b3ec465e861f680101fc4c to your computer and use it in GitHub Desktop.
How SupportActivity attaches a ReportFragment for Internals of Android Architecture Components Part II- LiveData
This file contains hidden or 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
@RestrictTo(LIBRARY_GROUP) | |
public class SupportActivity extends Activity implements LifecycleOwner { | |
// ... | |
@Override | |
@SuppressWarnings("RestrictedApi") | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
ReportFragment.injectIfNeededIn(this); | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment