title: Set specific instance of duplicated icon colour
body: <p>Before you read on I know that to change a specific tab icons colour I can use  </p>
  
  <pre><code>tabLayout.getTabAt(i).getIcon().setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.colorInactive), android.graphics.PorterDuff.Mode.MULTIPLY);
  </code></pre>
  
  <p>and there are many duplicated answers for how to specifically do this - but they don't answer my problem.</p>
  
  <p>I have a toolbar in which a person might have the sam icon twice (e.g. they have two or more employees profiles they can view), the problem is that by getting the icon and setting the colour it changes the colour for all the icons, not the selected icon - presumably because get icon just selects the icon by id rather than the specific instance</p>
  
  <p><a href="https://i.stack.imgur.com/ZDC0w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZDC0w.png" alt="enter image description here"></a></p>
  
  <p>If I select a tab with a different icon (e.g. more) then they both reset.</p>
  
  <p>Is there are way to only target the specific instance of the icon when changing the colour without creating a new drawable icon?</p>