-
-
Save Richie97/c0f681c152a4d01c076b4ad5573d9a5d to your computer and use it in GitHub Desktop.
Lifecycle Aware AppCompatActivity
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
public class LifecycleAppCompatActivity extends AppCompatActivity implements LifecycleRegistryOwner { | |
private final LifecycleRegistry mRegistry = new LifecycleRegistry(this); | |
public LifecycleAppCompatActivity() { | |
} | |
public LifecycleRegistry getLifecycle() { | |
return this.mRegistry; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment