docs: Minor formatting cleanup.

Code sample had an overlong line, which caused a horizontal scroll-
bar in the generated doc.

Change-Id: I55b0318049be9e4ff473bdc739bb8265ca2da248
This commit is contained in:
Andrew Solovay
2015-04-29 14:37:22 -07:00
parent 6360428359
commit 5fb97fe9ba

View File

@@ -274,7 +274,8 @@ android.view.View#post(java.lang.Runnable) View.post(Runnable)} method:</p>
public void onClick(View v) {
new Thread(new Runnable() {
public void run() {
final Bitmap bitmap = loadImageFromNetwork("http://example.com/image.png");
final Bitmap bitmap =
loadImageFromNetwork("http://example.com/image.png");
mImageView.post(new Runnable() {
public void run() {
mImageView.setImageBitmap(bitmap);
@@ -323,7 +324,7 @@ private class DownloadImageTask extends AsyncTask&lt;String, Void, Bitmap&gt; {
protected Bitmap doInBackground(String... urls) {
return loadImageFromNetwork(urls[0]);
}
/** The system calls this to perform work in the UI thread and delivers
* the result from doInBackground() */
protected void onPostExecute(Bitmap result) {