code: private void adaptIconTint() {
          Drawable icon = getIcon();
  
          if (icon != null) {
              DrawableCompat.setTintList(icon, tintList);
              DrawableCompat.setTintMode(icon, tintMode);
          }
      }
docs: Adapts the tint of the preference's icon.