android-ibc-forum

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f2fac604e11eb33e7f78060063b196e06e3005b0
parent 740c8c277412db9c466bc62820a0d8d5ab12118d
Author: Jan Dankert <devnull@localhost>
Date:   Thu,  2 Feb 2012 23:53:19 +0100

Serveraufrufe synchron durchführen.

Diffstat:
src/de/mtbnews/android/ForumOverviewActivity.java | 8++++----
src/de/mtbnews/android/util/ServerAsyncTask.java | 1+
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/de/mtbnews/android/ForumOverviewActivity.java b/src/de/mtbnews/android/ForumOverviewActivity.java @@ -89,7 +89,7 @@ public class ForumOverviewActivity extends ExpandableListActivity Toast.LENGTH_SHORT).show(); } - }.execute(); + }.executeSynchronized(); } private void unterforenFlachkloppen() @@ -98,6 +98,7 @@ public class ForumOverviewActivity extends ExpandableListActivity { final List<Forum> newSubForen = new ArrayList<Forum>(); + // Wenn Forum Themen enthalten kann, dann mit aufnehmen in die 2. Hierarchie. if (!forum.subOnly) newSubForen.add(forum); @@ -153,7 +154,7 @@ public class ForumOverviewActivity extends ExpandableListActivity setListAdapter(adapter); } - }.execute(); + }.executeSynchronized(); final ExpandableListView list = getExpandableListView(); @@ -255,14 +256,13 @@ public class ForumOverviewActivity extends ExpandableListActivity intent2.setAction(SearchActivity.ACTION_SEARCH_LATEST_TOPICS); startActivity(intent2); return true; - + case R.id.menu_unread_topics: Intent intent3 = new Intent(this, SearchActivity.class); intent3.setAction(SearchActivity.ACTION_SEARCH_UNREAD_TOPICS); startActivity(intent3); return true; - case R.id.menu_logout: logout(); return true; diff --git a/src/de/mtbnews/android/util/ServerAsyncTask.java b/src/de/mtbnews/android/util/ServerAsyncTask.java @@ -166,4 +166,5 @@ public abstract class ServerAsyncTask extends AsyncTask<Void, Void, Void> { super.execute(params); } + }