mirror of
https://github.com/samsonjs/media.git
synced 2026-04-20 13:45:47 +00:00
Switch the demo app from Util.areEqual to Guava's Objects.equals
Util.areEqual will not be part of the stable API. PiperOrigin-RevId: 437723080
This commit is contained in:
parent
d76658e6fc
commit
a8896c3996
1 changed files with 2 additions and 1 deletions
|
|
@ -53,6 +53,7 @@ import com.google.android.exoplayer2.upstream.DataSourceUtil;
|
|||
import com.google.android.exoplayer2.upstream.DataSpec;
|
||||
import com.google.android.exoplayer2.util.Log;
|
||||
import com.google.android.exoplayer2.util.Util;
|
||||
import com.google.common.base.Objects;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import java.io.IOException;
|
||||
|
|
@ -484,7 +485,7 @@ public class SampleChooserActivity extends AppCompatActivity
|
|||
|
||||
private PlaylistGroup getGroup(String groupName, List<PlaylistGroup> groups) {
|
||||
for (int i = 0; i < groups.size(); i++) {
|
||||
if (Util.areEqual(groupName, groups.get(i).title)) {
|
||||
if (Objects.equal(groupName, groups.get(i).title)) {
|
||||
return groups.get(i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue