summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAndrew Solovay <asolovay@google.com>2015-04-30 03:54:12 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-30 03:54:12 +0000
commita6319155211d933b88ea38b21579caf3f8c51b39 (patch)
treeae756a5504ad8a0db135b97f63cf8f85e6f1bfd2 /docs
parent8e0a661b0386703c6481b178774e2386cb25bee6 (diff)
parentb60846500364e3166c4044418c0dc4b5f081054c (diff)
downloadframeworks_base-a6319155211d933b88ea38b21579caf3f8c51b39.zip
frameworks_base-a6319155211d933b88ea38b21579caf3f8c51b39.tar.gz
frameworks_base-a6319155211d933b88ea38b21579caf3f8c51b39.tar.bz2
am b6084650: am 3500ad4c: am 4fbdbbe8: am c15736b9: am c2e2c7d5: Merge "docs: Minor formatting cleanup." into lmp-mr1-ub-docs
* commit 'b60846500364e3166c4044418c0dc4b5f081054c': docs: Minor formatting cleanup.
Diffstat (limited to 'docs')
-rw-r--r--docs/html/guide/components/processes-and-threads.jd5
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&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) {