Last active
December 7, 2019 14:27
-
-
Save user-mw/19bb4e6e7badd54ed102dc2507517089 to your computer and use it in GitHub Desktop.
getLastNonConfigurationInstance() in Activity
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 Activity extends ContextThemeWrapper | |
implements LayoutInflater.Factory2, | |
//Code { | |
// Code | |
public Object getLastNonConfigurationInstance() { | |
return mLastNonConfigurationInstances != null | |
? mLastNonConfigurationInstances.activity : null; | |
} | |
// Code | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment