commit 072a57c297baaee76019ff48c65de5ddd2570972
parent d39b5caee2b5b43ab4fe32f292ec6e4bc762bac9
Author: Jan Dankert <devnull@localhost>
Date: Sat, 13 Oct 2012 02:22:50 +0200
Login durchführen, falls notwendig.
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/de/mtbnews/android/ForumActivity.java b/src/de/mtbnews/android/ForumActivity.java
@@ -33,6 +33,7 @@ import de.mtbnews.android.tapatalk.wrapper.Topic;
import de.mtbnews.android.util.IBC;
import de.mtbnews.android.util.IBCException;
import de.mtbnews.android.util.ServerAsyncTask;
+import de.mtbnews.android.util.Utils;
/**
* @author dankert
@@ -411,7 +412,10 @@ public class ForumActivity extends EndlessListActivity<Topic>
@Override
protected void callServer() throws TapatalkException
{
-
+ if (Utils.loginExceeded(client))
+ client.login(prefs.getString("username", ""), prefs
+ .getString("password", ""));
+
this.forum = client.getForum(forumId, from, to, topicMode);
totalSize = this.forum.topicCount;
}