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
13
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
c01d26bc
Commit
c01d26bc
authored
5 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Fix BadParcelableException by using @Parcelize
parent
597da4fd
No related branches found
Branches containing commit
No related tags found
1 merge request
!208
Fixes
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 @
c01d26bc
...
...
@@ -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.
Geoffrey Métais
@Dekans
mentioned in commit
f6f5c9d5
·
5 years ago
mentioned in commit
f6f5c9d5
mentioned in commit f6f5c9d5ae1a6cdd26e6049b7cffd127e801bd16
Toggle commit list
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