diff --git a/res/layout/main.xml b/res/layout/main.xml index 2bd0e01..5047766 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -15,7 +15,7 @@ android:layout_below="@id/header" android:layout_alignParentBottom="true" android:layout_marginTop="20px" - android:layout_marginBottom="20px" + android:layout_marginBottom="50px" android:orientation="vertical" android:gravity="center"> diff --git a/src/com/studentersamfundet/app/JSONParserProgram.java b/src/com/studentersamfundet/app/JSONParserProgram.java index d968c33..f57b801 100644 --- a/src/com/studentersamfundet/app/JSONParserProgram.java +++ b/src/com/studentersamfundet/app/JSONParserProgram.java @@ -57,6 +57,7 @@ public class JSONParserProgram implements IParser { date = tempJSON.getString("date"); text = tempJSON.getString("content"); image = tempJSON.getString("thumbnail"); + category = tempJSON.getString("event"); tempJSON = tempJSON.getJSONObject("custom_fields"); ticketUrl = tempJSON.getJSONArray("_neuf_events_bs_url").getString(0); diff --git a/src/com/studentersamfundet/app/ui/lists/BaseListActivity.java b/src/com/studentersamfundet/app/ui/lists/BaseListActivity.java index 4a2e937..3b1fa43 100644 --- a/src/com/studentersamfundet/app/ui/lists/BaseListActivity.java +++ b/src/com/studentersamfundet/app/ui/lists/BaseListActivity.java @@ -106,7 +106,7 @@ public abstract class BaseListActivity extends BaseDnsActivity { @Override protected Boolean doInBackground(Void ... v) { - // Do we have intarwebs? + // Do we have intarwebs? // YAY = Fetch the feed. // NAY = Inform about no connection. try { @@ -129,7 +129,7 @@ public abstract class BaseListActivity extends BaseDnsActivity { ListView list = (ListView)findViewById(idList); T[] objects = getObjects(); - Log.i("DNSapp", "Showing " +objects.length +" objects."); + Log.i("DNSapp", "Showing " + objects.length +" objects."); ListAdapter adapter = createAdapter(objects); list.setAdapter(adapter); list.setVisibility(View.VISIBLE);