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
e674a43f
authored
Nov 08, 2021
by
ibaker
Committed by
tonihei
Nov 11, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove usages of ParserException from the demo app
PiperOrigin-RevId: 408311942
parent
f9c1cab5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
demos/main/src/main/java/com/google/android/exoplayer2/demo/SampleChooserActivity.java
demos/main/src/main/java/com/google/android/exoplayer2/demo/SampleChooserActivity.java
View file @
e674a43f
...
@@ -45,7 +45,6 @@ import androidx.appcompat.app.AppCompatActivity;
...
@@ -45,7 +45,6 @@ import androidx.appcompat.app.AppCompatActivity;
import
com.google.android.exoplayer2.MediaItem
;
import
com.google.android.exoplayer2.MediaItem
;
import
com.google.android.exoplayer2.MediaItem.ClippingConfiguration
;
import
com.google.android.exoplayer2.MediaItem.ClippingConfiguration
;
import
com.google.android.exoplayer2.MediaMetadata
;
import
com.google.android.exoplayer2.MediaMetadata
;
import
com.google.android.exoplayer2.ParserException
;
import
com.google.android.exoplayer2.RenderersFactory
;
import
com.google.android.exoplayer2.RenderersFactory
;
import
com.google.android.exoplayer2.offline.DownloadService
;
import
com.google.android.exoplayer2.offline.DownloadService
;
import
com.google.android.exoplayer2.upstream.DataSource
;
import
com.google.android.exoplayer2.upstream.DataSource
;
...
@@ -329,8 +328,7 @@ public class SampleChooserActivity extends AppCompatActivity
...
@@ -329,8 +328,7 @@ public class SampleChooserActivity extends AppCompatActivity
reader
.
nextString
();
// Ignore.
reader
.
nextString
();
// Ignore.
break
;
break
;
default
:
default
:
throw
ParserException
.
createForMalformedManifest
(
throw
new
IOException
(
"Unsupported name: "
+
name
,
/* cause= */
null
);
"Unsupported name: "
+
name
,
/* cause= */
null
);
}
}
}
}
reader
.
endObject
();
reader
.
endObject
();
...
@@ -424,8 +422,7 @@ public class SampleChooserActivity extends AppCompatActivity
...
@@ -424,8 +422,7 @@ public class SampleChooserActivity extends AppCompatActivity
reader
.
endArray
();
reader
.
endArray
();
break
;
break
;
default
:
default
:
throw
ParserException
.
createForMalformedManifest
(
throw
new
IOException
(
"Unsupported attribute name: "
+
name
,
/* cause= */
null
);
"Unsupported attribute name: "
+
name
,
/* cause= */
null
);
}
}
}
}
reader
.
endObject
();
reader
.
endObject
();
...
...
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