this.send.setVisibility(running ? View.VISIBLE : View.GONE);
}
+ private void scroll()
+ {
+ this.dscroll.smoothScrollTo(0, this.debug.getBottom());
+ this.lscroll.smoothScrollTo(0, this.log.getBottom());
+ }
+
/* Private handler methods */
private void onRegister(Task task)
{
if (Message.class.isInstance(obj))
this.onMessage((Message)obj);
}
+ this.scroll();
}
private void onMessage(Message msg)
{
// Debug
this.debug.append("> " + msg.line + "\n");
- this.dscroll.smoothScrollTo(0, this.debug.getBottom());
// Chat
switch (msg.type) {
this.notice("Authentication failed: " + msg.txt);
break;
}
- this.lscroll.smoothScrollTo(0, this.log.getBottom());
// Update title
if (this.cards.turn != null && this.cards.turn != "" &&
break;
case Task.MESSAGE:
Main.this.onMessage((Message)msg.obj);
+ Main.this.scroll();
break;
case Task.CONNECT:
Main.this.update(true);