Merge "Don't try to output really long URLs HTML5Audio exception handler."

This commit is contained in:
Ben Murdoch
2011-02-28 08:45:10 -08:00
committed by Android (Google) Code Review

View File

@@ -173,7 +173,8 @@ class HTML5Audio extends Handler
mState = INITIALIZED;
mMediaPlayer.prepareAsync();
} catch (IOException e) {
Log.e(LOGTAG, "couldn't load the resource: " + url + " exc: " + e);
String debugUrl = url.length() > 128 ? url.substring(0, 128) + "..." : url;
Log.e(LOGTAG, "couldn't load the resource: "+ debugUrl +" exc: " + e);
resetMediaPlayer();
}
}