@Override
          public Void call() {
            activityTestRule.getActivity().refreshView(true);
            return null;
          }
Set the preference for key KEY_DARK_MODE_ENABLED of {@link AuthenticatorActivity}.
javatests/com/google/android/apps/authenticator/AuthenticatorActivityTest.java