diff --git a/TODO b/TODO index ce6511b..d507a0d 100644 --- a/TODO +++ b/TODO @@ -2,8 +2,6 @@ Prioriteringer fra 0-100. Før lansering: [0] Dersom ingen billetter tilgjengelig for online kjøp, si ifra om dette. -[0] Få knappene til å se pene ut. -[0] Fiks bilde URL. [5] Skrive om "bli med" til om oss, ha med bli med tekst, evt. egen BLI MED KNAPP som går til JoinUsActivity. Etter: diff --git a/res/layout/main_tile_join.xml b/res/layout/main_tile_join.xml index abb00f9..488b109 100644 --- a/res/layout/main_tile_join.xml +++ b/res/layout/main_tile_join.xml @@ -2,9 +2,15 @@ + + + + + + + { try { HttpURLConnection con = (HttpURLConnection)new URL(params[0]).openConnection(); InputStream is = con.getInputStream(); - - d = Drawable.createFromStream(is, params[0].toString()); + + // + if (is == null) + return null; + d = Drawable.createFromStream(is, params[0].toString()); + + if (d == null) + return null; cache.put(params[0], d); + } catch (IOException e) { - Log.e("DNSapp", "An exception has occured while downloading images!", e); + Log.e("DNSapp", "An exception has occured while downloading images!"); } return d; }