@Override
  public void onClick(View v) {
    final AppCompatActivity activity = (AppCompatActivity) requireActivity();
    switch (v.getId()) {
      case R.id.go_to_languages_action:
        startActivity(
            new Intent(
                Intent.ACTION_VIEW,
                Uri.parse(requireContext().getString(R.string.deeplink_url_keyboards)),
                requireContext(),
                MainSettingsActivity.class));
        break;
      case R.id.go_to_theme_action:
        startActivity(
            new Intent(
                Intent.ACTION_VIEW,
                Uri.parse(requireContext().getString(R.string.deeplink_url_themes)),
                requireContext(),
                MainSettingsActivity.class));
        break;
      case R.id.go_to_all_settings_action:
        startActivity(new Intent(getContext(), MainSettingsActivity.class));
        // not returning to this Activity any longer.
        activity.finish();
        break;
      default:
        throw new IllegalArgumentException(
            "Failed to handle " + v.getId() + " in WizardPageDoneAndMoreSettingsFragment");
    }
  }
@Test
  public void testGoToAllSettingsOnClick() {
    final WizardPageDoneAndMoreSettingsFragment fragment = startFragment();
    final ShadowApplication shadowApplication =
        Shadows.shadowOf((Application) getApplicationContext());
    shadowApplication.clearNextStartedActivities();

    final View clickView = fragment.getView().findViewById(R.id.go_to_all_settings_action);
    View.OnClickListener clickHandler = Shadows.shadowOf(clickView).getOnClickListener();
    clickHandler.onClick(clickView);

    final Intent startIntent = shadowApplication.getNextStartedActivity();
    Assert.assertNotNull(startIntent);
    assertChauffeurIntent(
        new Intent(fragment.requireContext(), MainSettingsActivity.class), startIntent);
  }