Last active
August 29, 2015 13:57
-
-
Save gokhanbarisaker/9909795 to your computer and use it in GitHub Desktop.
Android Activity onCreate from 4.4.2-rc1 KitKat
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
protected void onCreate(Bundle savedInstanceState) { | |
if (DEBUG_LIFECYCLE) Slog.v(TAG, "onCreate " + this + ": " + savedInstanceState); | |
if (mLastNonConfigurationInstances != null) { | |
mAllLoaderManagers = mLastNonConfigurationInstances.loaders; | |
} | |
if (mActivityInfo.parentActivityName != null) { | |
if (mActionBar == null) { | |
mEnableDefaultActionBarUp = true; | |
} else { | |
mActionBar.setDefaultDisplayHomeAsUpEnabled(true); | |
} | |
} | |
if (savedInstanceState != null) { | |
Parcelable p = savedInstanceState.getParcelable(FRAGMENTS_TAG); | |
mFragments.restoreAllState(p, mLastNonConfigurationInstances != null | |
? mLastNonConfigurationInstances.fragments : null); | |
} | |
mFragments.dispatchCreate(); | |
getApplication().dispatchActivityCreated(this, savedInstanceState); | |
mCalled = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment