Why is a view with id `0` a [*View with no id*][2] but a view with id `-1` is treated as View with id? As far as I can see in the documentation [`View.NO_ID` is `-1`][1]. Even more, reading the source code Android ignores the state of any view with no id: ```java protected void dispatchSaveInstanceState(SparseArray<Parcelable> container) { if (mID != NO_ID && (mViewFlags & SAVE_DISABLED_MASK) == 0) { // stuff } } ``` I'm not sure if this is a bug or I'm missing something... [1]: https://developer.android.com/reference/android/view/View.html#NO_ID [2]: https://github.com/square/flow/blob/master/flow/src/main/java/flow/State.java#L74-L81
Why is a view with id
0a View with no id but a view with id-1is treated as View with id?As far as I can see in the documentation
View.NO_IDis-1. Even more, reading the source code Android ignores the state of any view with no id:I'm not sure if this is a bug or I'm missing something...