Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
f6f5c9d5
Commit
f6f5c9d5
authored
5 years ago
by
Nicolas Pomepuy
Committed by
Geoffrey Métais
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix BadParcelableException by using @Parcelize
(cherry picked from commit
c01d26bc
)
parent
47ec6fab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetails.kt
+3
-32
3 additions, 32 deletions
vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetails.kt
with
3 additions
and
32 deletions
vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetails.kt
+
3
−
32
View file @
f6f5c9d5
...
...
@@ -22,39 +22,10 @@ package org.videolan.vlc.gui.tv
import
android.os.Parcel
import
android.os.Parcelable
import
kotlinx.android.parcel.Parcelize
@Parcelize
data class
MediaItemDetails
(
var
title
:
String
?
=
null
,
var
subTitle
:
String
?
=
null
,
var
body
:
String
?
=
null
,
var
location
:
String
?
=
null
,
var
artworkUrl
:
String
?
=
null
)
:
Parcelable
{
constructor
(
parcel
:
Parcel
)
:
this
(
parcel
.
readString
(),
parcel
.
readString
(),
parcel
.
readString
(),
parcel
.
readString
(),
parcel
.
readString
())
override
fun
writeToParcel
(
parcel
:
Parcel
,
flags
:
Int
)
{
parcel
.
writeString
(
title
)
parcel
.
writeString
(
subTitle
)
parcel
.
writeString
(
body
)
parcel
.
writeString
(
location
)
parcel
.
writeString
(
artworkUrl
)
}
override
fun
describeContents
():
Int
{
return
0
}
companion
object
CREATOR
:
Parcelable
.
Creator
<
MediaItemDetails
>
{
override
fun
createFromParcel
(
parcel
:
Parcel
):
MediaItemDetails
{
return
MediaItemDetails
(
parcel
)
}
override
fun
newArray
(
size
:
Int
):
Array
<
MediaItemDetails
?>
{
return
arrayOfNulls
(
size
)
}
}
}
var
artworkUrl
:
String
?
=
null
)
:
Parcelable
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment