diff options
author | Andrew Solovay <asolovay@google.com> | 2015-04-29 14:37:22 -0700 |
---|---|---|
committer | Andrew Solovay <asolovay@google.com> | 2015-04-29 14:37:22 -0700 |
commit | 5fb97fe9ba5eb985779e67355d3706cb0db0ffb6 (patch) | |
tree | b5e0afcb12b7c86d52fc5f887ac6c971ccbb6262 /docs/html/guide/components | |
parent | 6360428359bd1a4db1c9a569d8f9e1af8baf29fb (diff) | |
download | frameworks_base-5fb97fe9ba5eb985779e67355d3706cb0db0ffb6.zip frameworks_base-5fb97fe9ba5eb985779e67355d3706cb0db0ffb6.tar.gz frameworks_base-5fb97fe9ba5eb985779e67355d3706cb0db0ffb6.tar.bz2 |
docs: Minor formatting cleanup.
Code sample had an overlong line, which caused a horizontal scroll-
bar in the generated doc.
Change-Id: I55b0318049be9e4ff473bdc739bb8265ca2da248
Diffstat (limited to 'docs/html/guide/components')
-rw-r--r-- | docs/html/guide/components/processes-and-threads.jd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/html/guide/components/processes-and-threads.jd b/docs/html/guide/components/processes-and-threads.jd index e7ef7ba..10a6410 100644 --- a/docs/html/guide/components/processes-and-threads.jd +++ b/docs/html/guide/components/processes-and-threads.jd @@ -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<String, Void, Bitmap> { 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) { |