android-ibc-forum

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

commit 3b00a1806ef8d0bb6f6bceb934188c925612134b
parent 624c246913613fcb5ac33a72bb0954861466dce9
Author: Jan Dankert <devnull@localhost>
Date:   Wed, 25 Jan 2012 23:55:10 +0100

Toast-Nachricht, wenn Login/Logout.

Diffstat:
src/de/mtbnews/android/ForumOverviewActivity.java | 17+++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/de/mtbnews/android/ForumOverviewActivity.java b/src/de/mtbnews/android/ForumOverviewActivity.java @@ -84,6 +84,13 @@ public class ForumOverviewActivity extends ExpandableListActivity } + @Override + protected void doOnSuccess() + { + Toast.makeText(ForumOverviewActivity.this, R.string.login, + Toast.LENGTH_SHORT).show(); + } + }.execute(); } @@ -107,7 +114,7 @@ public class ForumOverviewActivity extends ExpandableListActivity final List<Forum> newSubForen = new ArrayList<Forum>(); if (subForen == null) return newSubForen; - + for (Forum subForum : subForen) { newSubForen.add(subForum); @@ -300,7 +307,6 @@ public class ForumOverviewActivity extends ExpandableListActivity try { client.logout(); - } catch (TapatalkException e) { @@ -310,6 +316,13 @@ public class ForumOverviewActivity extends ExpandableListActivity } + @Override + protected void doOnSuccess() + { + Toast.makeText(ForumOverviewActivity.this, R.string.logout, + Toast.LENGTH_SHORT).show(); + } + }.executeSynchronized(); }