Source:
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); app = (WikipediaApp) getApplicationContext(); MetricsManager.register(app, app); app.checkCrashes(this); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); } PreferenceManager.setDefaultValues(this, R.xml.preferences, false); setContentView(R.layout.activity_page); unbinder = ButterKnife.bind(this); busMethods = new EventBusMethods(); registerBus(); updateProgressBar(false, true, 0); pageFragment = (PageFragment) getSupportFragmentManager().findFragmentById(R.id.page_fragment); searchFragment = (SearchFragment) getSupportFragmentManager().findFragmentById(R.id.page_search_fragment); bottomSheetPresenter = new ExclusiveBottomSheetPresenter(this.getSupportFragmentManager()); setSupportActionBar(toolbar); getSupportActionBar().setTitle(""); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_circle_down_arrow_24dp); boolean languageChanged = false; zeroFunnel = app.getWikipediaZeroHandler().getZeroFunnel(); if (savedInstanceState != null) { isZeroEnabled = savedInstanceState.getBoolean("pausedZeroEnabledState"); currentZeroConfig = savedInstanceState.getParcelable("pausedZeroConfig"); if (savedInstanceState.getBoolean("isSearching")) { searchFragment.openSearch(); } String language = savedInstanceState.getString(LANGUAGE_CODE_BUNDLE_KEY); languageChanged = !app.getAppOrSystemLanguageCode().equals(language); } if (languageChanged) { app.resetSite(); loadMainPageInForegroundTab(); } if (savedInstanceState == null) { handleIntent(getIntent()); } new RecurringTasksExecutor(app).run(); UserOptionContentResolver.requestManualSync(); }

Target:
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); app = (WikipediaApp) getApplicationContext(); MetricsManager.register(app, app); app.checkCrashes(this); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); } PreferenceManager.setDefaultValues(this, R.xml.preferences, false); setContentView(R.layout.activity_page); unbinder = ButterKnife.bind(this); busMethods = new EventBusMethods(); registerBus(); updateProgressBar(false, true, 0); pageFragment = (PageFragment) getSupportFragmentManager().findFragmentById(R.id.page_fragment); searchFragment = (SearchFragment) getSupportFragmentManager().findFragmentById(R.id.page_search_fragment); bottomSheetPresenter = new ExclusiveBottomSheetPresenter(this.getSupportFragmentManager()); setSupportActionBar(toolbar); getSupportActionBar().setTitle(""); getSupportActionBar().setDisplayHomeAsUpEnabled(true); boolean languageChanged = false; zeroFunnel = app.getWikipediaZeroHandler().getZeroFunnel(); if (savedInstanceState != null) { isZeroEnabled = savedInstanceState.getBoolean("pausedZeroEnabledState"); currentZeroConfig = savedInstanceState.getParcelable("pausedZeroConfig"); if (savedInstanceState.getBoolean("isSearching")) { searchFragment.openSearch(); } String language = savedInstanceState.getString(LANGUAGE_CODE_BUNDLE_KEY); languageChanged = !app.getAppOrSystemLanguageCode().equals(language); } if (languageChanged) { app.resetSite(); loadMainPageInForegroundTab(); } if (savedInstanceState == null) { handleIntent(getIntent()); } new RecurringTasksExecutor(app).run(); UserOptionContentResolver.requestManualSync(); }