mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
Remove usages of ParserException from the demo app
PiperOrigin-RevId: 408311942
This commit is contained in:
parent
77c5bc8e31
commit
a06eb54b50
1 changed files with 2 additions and 5 deletions
|
|
@ -45,7 +45,6 @@ import androidx.appcompat.app.AppCompatActivity;
|
|||
import androidx.media3.common.MediaItem;
|
||||
import androidx.media3.common.MediaItem.ClippingConfiguration;
|
||||
import androidx.media3.common.MediaMetadata;
|
||||
import androidx.media3.common.ParserException;
|
||||
import androidx.media3.common.util.Log;
|
||||
import androidx.media3.common.util.Util;
|
||||
import androidx.media3.datasource.DataSource;
|
||||
|
|
@ -329,8 +328,7 @@ public class SampleChooserActivity extends AppCompatActivity
|
|||
reader.nextString(); // Ignore.
|
||||
break;
|
||||
default:
|
||||
throw ParserException.createForMalformedManifest(
|
||||
"Unsupported name: " + name, /* cause= */ null);
|
||||
throw new IOException("Unsupported name: " + name, /* cause= */ null);
|
||||
}
|
||||
}
|
||||
reader.endObject();
|
||||
|
|
@ -424,8 +422,7 @@ public class SampleChooserActivity extends AppCompatActivity
|
|||
reader.endArray();
|
||||
break;
|
||||
default:
|
||||
throw ParserException.createForMalformedManifest(
|
||||
"Unsupported attribute name: " + name, /* cause= */ null);
|
||||
throw new IOException("Unsupported attribute name: " + name, /* cause= */ null);
|
||||
}
|
||||
}
|
||||
reader.endObject();
|
||||
|
|
|
|||
Loading…
Reference in a new issue