Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5460ac8e
authored
May 31, 2022
by
bachinger
Committed by
Marc Baechinger
May 31, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated calls
#minor-release PiperOrigin-RevId: 452006137
parent
f76baaee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java
demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java
View file @
5460ac8e
...
...
@@ -230,8 +230,8 @@ public class MainActivity extends AppCompatActivity
@Override
public
boolean
onMove
(
RecyclerView
list
,
RecyclerView
.
ViewHolder
origin
,
RecyclerView
.
ViewHolder
target
)
{
int
fromPosition
=
origin
.
getAdapterPosition
();
int
toPosition
=
target
.
getAdapterPosition
();
int
fromPosition
=
origin
.
get
Binding
AdapterPosition
();
int
toPosition
=
target
.
get
Binding
AdapterPosition
();
if
(
draggingFromPosition
==
C
.
INDEX_UNSET
)
{
// A drag has started, but changes to the media queue will be reflected in clearView().
draggingFromPosition
=
fromPosition
;
...
...
@@ -243,7 +243,7 @@ public class MainActivity extends AppCompatActivity
@Override
public
void
onSwiped
(
RecyclerView
.
ViewHolder
viewHolder
,
int
direction
)
{
int
position
=
viewHolder
.
getAdapterPosition
();
int
position
=
viewHolder
.
get
Binding
AdapterPosition
();
QueueItemViewHolder
queueItemHolder
=
(
QueueItemViewHolder
)
viewHolder
;
if
(
playerManager
.
removeItem
(
queueItemHolder
.
item
))
{
mediaQueueListAdapter
.
notifyItemRemoved
(
position
);
...
...
@@ -282,7 +282,7 @@ public class MainActivity extends AppCompatActivity
@Override
public
void
onClick
(
View
v
)
{
playerManager
.
selectQueueItem
(
getAdapterPosition
());
playerManager
.
selectQueueItem
(
get
Binding
AdapterPosition
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment