@Override
  protected void onResume() {
    super.onResume();
    Log.i(getString(R.string.app_name), LOCAL_TAG + ": onResume");
    darkModeEnabled = preferences.getBoolean(KEY_DARK_MODE_ENABLED, false);
    onboardingCompleted = preferences.getBoolean(KEY_ONBOARDING_COMPLETED, false);
    refreshToolbarAndStatusBarStyle();
  }
Reacts to the {@link Intent} that started this activity or arrived to this activity without
restarting it (i.e., arrived via {@link #onNewIntent(Intent)}). Does nothing if the provided
intent is {@code null}.
java/com/google/android/apps/authenticator/AuthenticatorActivity.java