title: Setting Circular progressbar is not updating the progress
body: <p>My Code is really simple and it has nothing fancy logic in it. I am just taking a value and trying to set the value. This value is coming from the a LiveData observer and calling invalidate menu option to update the menu item values.</p>
  <p>so inside onPrepareOptionsMenu</p>
  <pre><code>        /*---------- Sensor Connection---------------*/
          sensorPowerProgressView = menu?.findItem(R.id.action_power)?.actionView?.findViewById(R.id.powerProgress)    
          sensorPowerProgressView?.apply {
              max = 5
              progress = sensorPower
              Log.d(&quot;POWER_VALUE&quot;,&quot;Sensor=$sensorPower&quot;)
          }
  </code></pre>
  <p>When I check, the Log is perfectly logging the correct values. Upon sensor disconnect, I am setting progress value to 0 but it is retaining the last value as is in the progress.</p>
  <p>I seriously don't know what is going on. I've read some <a href="https://stackoverflow.com/questions/4348032/android-progressbar-does-not-update-progress-view-drawable">older posts</a> that pointed out, there was a bug and they provide some solutions but none of those solutions were working out for me.</p>
  <p>One person has suggested to set the value on post, same solution was suggested by my brother who is senior Android developer but it seems to work sometime and sometime it doesn't.</p>