title: Icons in Preference Fragment not adapting to night mode
body: <p>I'm wirting a android app and wanted to make a SettingsActivity.
  The problem I have that my vector drawable won't adapt it's color to night or day theme.</p>
  
  <p>ic_palette_black_24dp.xml:</p>
  
  <pre><code>&lt;vector android:height="24dp" android:tint="#FFFFFF"
      android:viewportHeight="24.0" android:viewportWidth="24.0"
      android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;path android:fillColor="@color/icon_color_on_surface" android:pathData="M12,3c-4.97,0 -9,4.03 -9,9s4.03,9 9,9c0.83,0 1.5,-0.67 1.5,-1.5 0,-0.39 -0.15,-0.74 -0.39,-1.01 -0.23,-0.26 -0.38,-0.61 -0.38,-0.99 0,-0.83 0.67,-1.5 1.5,-1.5L16,16c2.76,0 5,-2.24 5,-5 0,-4.42 -4.03,-8 -9,-8zM6.5,12c-0.83,0 -1.5,-0.67 -1.5,-1.5S5.67,9 6.5,9 8,9.67 8,10.5 7.33,12 6.5,12zM9.5,8C8.67,8 8,7.33 8,6.5S8.67,5 9.5,5s1.5,0.67 1.5,1.5S10.33,8 9.5,8zM14.5,8c-0.83,0 -1.5,-0.67 -1.5,-1.5S13.67,5 14.5,5s1.5,0.67 1.5,1.5S15.33,8 14.5,8zM17.5,12c-0.83,0 -1.5,-0.67 -1.5,-1.5S16.67,9 17.5,9s1.5,0.67 1.5,1.5 -0.67,1.5 -1.5,1.5z"/&gt;
  &lt;/vector&gt;
  </code></pre>
  
  <p>values/colors.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;resources&gt;
      &lt;color name="icon_color_on_surface"&gt;#000000&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>values-night/colors.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;color name="icon_color_on_surface"&gt;#FFFFFF&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>And in my root_preferences.xml:</p>
  
  <pre><code>&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/root_preferences"&gt;
      &lt;PreferenceCategory android:title="@string/title_preference_design"&gt;
  
          &lt;ListPreference
              android:entries="@array/preference_list_theme"
              android:entryValues="@array/preference_list_theme_values"
              android:icon="@drawable/ic_palette_black_24dp"
              android:key="list_preference_theme"
              android:tint="@color/icon_color_on_surface"
              android:tintMode="src_atop"
              android:title="@string/preference_category_theme"
              app:icon="@drawable/ic_palette_black_24dp" /&gt;
      &lt;/PreferenceCategory&gt;
  &lt;/PreferenceScreen&gt;
  </code></pre>
  
  <p>[Edit]</p>
  
  <p>Here also my SettingsActivity.java that is basicly the default by AndroidStudio:</p>
  
  <pre><code>import android.os.Bundle;
  import android.util.Log;
  import android.view.View;
  import android.widget.Toast;
  
  import androidx.annotation.NonNull;
  import androidx.annotation.Nullable;
  import androidx.appcompat.app.ActionBar;
  import androidx.appcompat.app.AppCompatActivity;
  import androidx.appcompat.app.AppCompatDelegate;
  import androidx.appcompat.widget.Toolbar;
  import androidx.preference.ListPreference;
  import androidx.preference.Preference;
  import androidx.preference.PreferenceFragmentCompat;
  import androidx.preference.PreferenceScreen;
  
  import java.util.ArrayList;
  
  public class SettingsActivity extends AppCompatActivity {
  
      private ColorHelper colorHelper;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.settings_activity);
          getSupportFragmentManager()
                  .beginTransaction()
                  .replace(R.id.settings, new SettingsFragment())
                  .commit();
          Toolbar toolbar = findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
          ActionBar actionBar = getSupportActionBar();
          if (actionBar != null) {
              actionBar.setDisplayHomeAsUpEnabled(true);
          }
  
      }
  
      public static class SettingsFragment extends PreferenceFragmentCompat {
  
          @Override
          public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
              // Indicate here the XML resource you created above that holds the preferences
              setPreferencesFromResource(R.xml.root_preferences, rootKey);
          }
  
          @Override
          public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
              super.onViewCreated(view, savedInstanceState);
  
          }
      }
  }
  </code></pre>
  
  <p>[/EDIT]</p>
  
  <p>As you can see in <em>root_preferences.xml</em> I already tried setting it by <code>android:tint=""</code> and <code>android:tintMode=""</code> but no matter what I do the icon color stayes white.
  In other Activities the workaround with <code>android:tint=""</code> does work.</p>
  
  <p>I hope someone can help me with this.
  Thanks</p>