File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spotify-api/src/main/java/kaaes/spotify/webapi/android/models Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public void writeToParcel(Parcel dest, int flags) {
37
37
dest .writeParcelable (this .linked_from , 0 );
38
38
dest .writeInt (this .disc_number );
39
39
dest .writeLong (this .duration_ms );
40
- dest .writeByte ( explicit ? ( byte ) 1 : ( byte ) 0 );
40
+ dest .writeValue ( this . explicit );
41
41
dest .writeMap (this .external_urls );
42
42
dest .writeString (this .href );
43
43
dest .writeString (this .id );
@@ -58,7 +58,7 @@ protected TrackSimple(Parcel in) {
58
58
this .linked_from = in .readParcelable (LinkedTrack .class .getClassLoader ());
59
59
this .disc_number = in .readInt ();
60
60
this .duration_ms = in .readLong ();
61
- this .explicit = in .readByte () != 0 ;
61
+ this .explicit = ( Boolean ) in .readValue ( Boolean . class . getClassLoader ()) ;
62
62
this .external_urls = in .readHashMap (Map .class .getClassLoader ());
63
63
this .href = in .readString ();
64
64
this .id = in .readString ();
You can’t perform that action at this time.
0 commit comments