Commit 364239ac by ibaker Committed by tonihei

Remove usages of ParserException from the demo app

PiperOrigin-RevId: 408311942
parent 44044047
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment