onUpdate is called twice

I observed that `onUpdate` is called twice in my views. I don't understand why and the solutions I could come up with are

  1. have a switch that remember if it was already called see https://github.com/individual-it/BatteryGuesstimate/pull/4
  2. have a global `_dc as Dc` that is set from `onLayout()` and do the whole drawing in `onShow()`

but both does not sound right.

Any other solutions, or even maybe an explanation why `onUpdate()` is called twice?