mirror of
https://github.com/androidx/media.git
synced 2025-05-10 17:22:13 +08:00
Remove incorrect TODOs
PiperOrigin-RevId: 352552961
This commit is contained in:
parent
dc1842efb9
commit
60f000c8b1
@ -2045,8 +2045,6 @@ public final class Util {
|
||||
|
||||
/** Returns a data URI with the specified MIME type and data. */
|
||||
public static Uri getDataUriForString(String mimeType, String data) {
|
||||
// TODO(internal: b/169937045): For now we don't pass the URL_SAFE flag as DataSchemeDataSource
|
||||
// doesn't decode using it.
|
||||
return Uri.parse(
|
||||
"data:" + mimeType + ";base64," + Base64.encodeToString(data.getBytes(), Base64.NO_WRAP));
|
||||
}
|
||||
|
@ -59,7 +59,6 @@ public final class DataSchemeDataSource extends BaseDataSource {
|
||||
String dataString = uriParts[1];
|
||||
if (uriParts[0].contains(";base64")) {
|
||||
try {
|
||||
// TODO(internal: b/169937045): Consider passing Base64.URL_SAFE flag.
|
||||
data = Base64.decode(dataString, /* flags= */ Base64.DEFAULT);
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new ParserException("Error while parsing Base64 encoded string: " + dataString, e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user