am c2e2c7d5: Merge "docs: Minor formatting cleanup." into lmp-mr1-ub-docs
* commit 'c2e2c7d5f5b8bf699d7177a4dc7694719323fd87': docs: Minor formatting cleanup.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user