Indentation.

This commit is contained in:
atanasovg
2016-07-07 15:06:10 +03:00
parent 047b6b6888
commit 73fb30a9e0

View File

@@ -71,21 +71,17 @@ public class Async
stream = new java.net.URL(params[0]).openStream(); stream = new java.net.URL(params[0]).openStream();
Bitmap bmp = BitmapFactory.decodeStream(stream); Bitmap bmp = BitmapFactory.decodeStream(stream);
return bmp; return bmp;
} } catch (MalformedURLException e) {
catch (MalformedURLException e) {
e.printStackTrace(); e.printStackTrace();
return null; return null;
} } catch (IOException e) {
catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
return null; return null;
} } finally {
finally {
if (stream != null) { if (stream != null) {
try { try {
stream.close(); stream.close();
} } catch (IOException e) {
catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
@@ -113,8 +109,8 @@ public class Async
Resources res = this.context.getResources(); Resources res = this.context.getResources();
int id = res.getIdentifier(name, "drawable", context.getPackageName()); int id = res.getIdentifier(name, "drawable", context.getPackageName());
if(id > 0) { if (id > 0) {
BitmapDrawable result = (BitmapDrawable)res.getDrawable(id); BitmapDrawable result = (BitmapDrawable) res.getDrawable(id);
return result.getBitmap(); return result.getBitmap();
} }