Remove usages of ParserException from the demo app
PiperOrigin-RevId: 408311942
This commit is contained in:
parent
77c5bc8e31
commit
a06eb54b50
@ -45,7 +45,6 @@ import androidx.appcompat.app.AppCompatActivity;
|
|||||||
import androidx.media3.common.MediaItem;
|
import androidx.media3.common.MediaItem;
|
||||||
import androidx.media3.common.MediaItem.ClippingConfiguration;
|
import androidx.media3.common.MediaItem.ClippingConfiguration;
|
||||||
import androidx.media3.common.MediaMetadata;
|
import androidx.media3.common.MediaMetadata;
|
||||||
import androidx.media3.common.ParserException;
|
|
||||||
import androidx.media3.common.util.Log;
|
import androidx.media3.common.util.Log;
|
||||||
import androidx.media3.common.util.Util;
|
import androidx.media3.common.util.Util;
|
||||||
import androidx.media3.datasource.DataSource;
|
import androidx.media3.datasource.DataSource;
|
||||||
@ -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
|
|||||||
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user