Source:
protected void onCreate(Bundle savedInstanceState) { Log_OC.v(TAG, "onCreate() start"); super.onCreate(savedInstanceState); mLocalBroadcastManager = LocalBroadcastManager.getInstance(this); if (savedInstanceState != null) { mFileWaitingToPreview = savedInstanceState.getParcelable(FileDisplayActivity.KEY_WAITING_TO_PREVIEW); mSyncInProgress = savedInstanceState.getBoolean(KEY_SYNC_IN_PROGRESS); mWaitingToSend = savedInstanceState.getParcelable(FileDisplayActivity.KEY_WAITING_TO_SEND); mFilesUploadHelper = savedInstanceState.getParcelable(KEY_UPLOAD_HELPER); mFilesUploadHelper.init(this, getAccount().name); } else { mFileWaitingToPreview = null; mSyncInProgress = false; mWaitingToSend = null; FileObserverService.initialize(this); mFilesUploadHelper = new FilesUploadHelper(this, getAccount() == null ? "" : getAccount().name); } setContentView(R.layout.files); setupToolbar(); setupDrawer(R.id.nav_all_files); setupDrawer(R.id.nav_all_files); mLeftFragmentContainer = findViewById(R.id.left_fragment_container); mRightFragmentContainer = findViewById(R.id.right_fragment_container); getSupportActionBar().setHomeButtonEnabled(true); FragmentManager fm = getSupportFragmentManager(); TaskRetainerFragment taskRetainerFragment = (TaskRetainerFragment) fm.findFragmentByTag(TaskRetainerFragment.FTAG_TASK_RETAINER_FRAGMENT); if (taskRetainerFragment == null) { taskRetainerFragment = new TaskRetainerFragment(); fm.beginTransaction() .add(taskRetainerFragment, TaskRetainerFragment.FTAG_TASK_RETAINER_FRAGMENT).commit(); } Log_OC.v(TAG, "onCreate() end"); if (getResources().getBoolean(R.bool.enable_rate_me_feature) && !isBeta()) { AppRater.appLaunched(this, getPackageName()); } }

Target:
protected void onCreate(Bundle savedInstanceState) { Log_OC.v(TAG, "onCreate() start"); super.onCreate(savedInstanceState); mLocalBroadcastManager = LocalBroadcastManager.getInstance(this); if (savedInstanceState != null) { Log.d(TAG, savedInstanceState.toString()); } if (savedInstanceState != null) { mFileWaitingToPreview = savedInstanceState.getParcelable(FileDisplayActivity.KEY_WAITING_TO_PREVIEW); mSyncInProgress = savedInstanceState.getBoolean(KEY_SYNC_IN_PROGRESS); mWaitingToSend = savedInstanceState.getParcelable(FileDisplayActivity.KEY_WAITING_TO_SEND); mFilesUploadHelper = savedInstanceState.getParcelable(KEY_UPLOAD_HELPER); if (getAccount() != null) { mFilesUploadHelper.init(this, getAccount().name); } } else { mFileWaitingToPreview = null; mSyncInProgress = false; mWaitingToSend = null; mFilesUploadHelper = new FilesUploadHelper(this, getAccount() == null ? "" : getAccount().name); } setContentView(R.layout.files); setupToolbar(); setupDrawer(R.id.nav_all_files); mLeftFragmentContainer = findViewById(R.id.left_fragment_container); mRightFragmentContainer = findViewById(R.id.right_fragment_container); getSupportActionBar().setHomeButtonEnabled(true); FragmentManager fm = getSupportFragmentManager(); TaskRetainerFragment taskRetainerFragment = (TaskRetainerFragment) fm.findFragmentByTag(TaskRetainerFragment.FTAG_TASK_RETAINER_FRAGMENT); if (taskRetainerFragment == null) { taskRetainerFragment = new TaskRetainerFragment(); fm.beginTransaction() .add(taskRetainerFragment, TaskRetainerFragment.FTAG_TASK_RETAINER_FRAGMENT).commit(); } Log_OC.v(TAG, "onCreate() end"); if (getResources().getBoolean(R.bool.enable_rate_me_feature) && !isBeta()) { AppRater.appLaunched(this, getPackageName()); } }