Source:
@Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); exclusiveBusMethods = new ExclusiveBusConsumer(); disposables.add(WikipediaApp.getInstance().getBus().subscribe(new NonExclusiveBusConsumer())); setTheme(); removeSplashBackground(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1 && AppShortcuts.ACTION_APP_SHORTCUT.equals(getIntent().getAction())) { getIntent().putExtra(INTENT_EXTRA_INVOKE_SOURCE, Constants.InvokeSource.APP_SHORTCUTS); String shortcutId = getIntent().getStringExtra(APP_SHORTCUT_ID); if (!TextUtils.isEmpty(shortcutId)) { getApplicationContext().getSystemService(ShortcutManager.class) .reportShortcutUsed(shortcutId); } } if (getSupportActionBar() != null) { getSupportActionBar().setDisplayHomeAsUpEnabled(true); } NotificationPollBroadcastReceiver.startPollTask(WikipediaApp.getInstance()); new RecurringTasksExecutor(WikipediaApp.getInstance()).run(); if (Prefs.isReadingListsFirstTimeSync() && AccountUtil.isLoggedIn()) { Prefs.setReadingListsFirstTimeSync(false); Prefs.setReadingListSyncEnabled(true); ReadingListSyncAdapter.manualSyncWithForce(); } IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); registerReceiver(networkStateReceiver, filter); DeviceUtil.setLightSystemUiVisibility(this); setStatusBarColor(ResourceUtil.getThemedColor(this, R.attr.paper_color)); setNavigationBarColor(ResourceUtil.getThemedColor(this, R.attr.paper_color)); maybeShowLoggedOutInBackgroundDialog(); WikipediaApp.getInstance().putCrashReportProperty("app_local_class_name", getLocalClassName()); }

Target:
@Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); exclusiveBusMethods = new ExclusiveBusConsumer(); disposables.add(WikipediaApp.getInstance().getBus().subscribe(new NonExclusiveBusConsumer())); setTheme(); removeSplashBackground(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1 && AppShortcuts.ACTION_APP_SHORTCUT.equals(getIntent().getAction())) { getIntent().putExtra(INTENT_EXTRA_INVOKE_SOURCE, Constants.InvokeSource.APP_SHORTCUTS); String shortcutId = getIntent().getStringExtra(APP_SHORTCUT_ID); if (!TextUtils.isEmpty(shortcutId)) { getApplicationContext().getSystemService(ShortcutManager.class) .reportShortcutUsed(shortcutId); } } if (getSupportActionBar() != null) { getSupportActionBar().setDisplayHomeAsUpEnabled(true); } NotificationPollBroadcastReceiver.startPollTask(WikipediaApp.getInstance()); new RecurringTasksExecutor(WikipediaApp.getInstance()).run(); if (Prefs.isReadingListsFirstTimeSync() && AccountUtil.isLoggedIn()) { Prefs.setReadingListsFirstTimeSync(false); Prefs.setReadingListSyncEnabled(true); ReadingListSyncAdapter.manualSyncWithForce(); } IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); registerReceiver(networkStateReceiver, filter); DeviceUtil.setLightSystemUiVisibility(this); setStatusBarColor(ResourceUtil.getThemedColor(this, R.attr.paper_color)); setNavigationBarColor(ResourceUtil.getThemedColor(this, R.attr.paper_color)); maybeShowLoggedOutInBackgroundDialog(); if (!(this instanceof CrashReportActivity)) { Prefs.setLocalClassName(getLocalClassName()); } }