Why is it possible to write a boolean array to a parcel but not a boolean?

后端 未结 2 1746
我寻月下人不归
我寻月下人不归 2021-01-03 19:59

In the documentation for the Parcel it states a method exists

public final void writeBooleanArray (boolean[] val) 

But there is no method f

相关标签:
2条回答
  • 2021-01-03 20:13

    No reason at all, seems just a miss to me. :-) Write a boolean[1] if you need.

    See bug 5973.

    0 讨论(0)
  • 2021-01-03 20:15

    There is an open bug report on it:

    http://code.google.com/p/android/issues/detail?id=5973

    Evidently others agree with your assessment (and I do too).

    0 讨论(0)
提交回复
热议问题