Source:
<code>@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); } PeriodicWorkRequest editorReactivationWorker = new PeriodicWorkRequest.Builder(SuggestedEditsReactivationWorker.class, 1, TimeUnit.DAYS) <START> .setConstraints(new Constraints.Builder().build()) <END> .setInitialDelay(1, TimeUnit.HOURS) .build(); WorkManager.getInstance(this) .enqueueUniquePeriodicWork("suggested-edits-worker", KEEP, editorReactivationWorker); 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); setNavigationBarColor(ResourceUtil.getThemedColor(this, R.attr.paper_color)); maybeShowLoggedOutInBackgroundDialog(); }</code><technical_language>if empty Constraints object, is necessary</technical_language>

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); setNavigationBarColor(ResourceUtil.getThemedColor(this, R.attr.paper_color)); maybeShowLoggedOutInBackgroundDialog(); }