1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-16 05:55:08 -05:00
This commit is contained in:
Sebastian Kaspari 2010-03-08 19:55:32 +01:00
parent 72fdf44e5e
commit a84a8ef51c
3 changed files with 3 additions and 5 deletions

View File

@ -23,19 +23,15 @@ package org.yaaic.adapter;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedList; import java.util.LinkedList;
import org.yaaic.R;
import org.yaaic.model.Channel; import org.yaaic.model.Channel;
import org.yaaic.model.Message; import org.yaaic.model.Message;
import android.content.Context;
import android.graphics.Typeface; import android.graphics.Typeface;
import android.text.SpannableString; import android.text.SpannableString;
import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.BaseAdapter; import android.widget.BaseAdapter;
import android.widget.Gallery; import android.widget.Gallery;
import android.widget.ScrollView;
import android.widget.TextView; import android.widget.TextView;
/** /**

View File

@ -349,6 +349,8 @@ public class IRCConnection extends PircBot
protected void onQuit(String sourceNick, String sourceLogin, String sourceHostname, String reason) protected void onQuit(String sourceNick, String sourceLogin, String sourceHostname, String reason)
{ {
debug("Quit", sourceNick); debug("Quit", sourceNick);
// XXX: Add message to all channels where this user has been
} }
/** /**

View File

@ -201,7 +201,7 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
if (canvas != null) { if (canvas != null) {
canvas.append(message.render(canvas.getContext())); canvas.append(message.render(canvas.getContext()));
int y = (canvas.getLineCount() * canvas.getLineHeight()) - canvas.getHeight() + 20; int y = (canvas.getLineCount() * canvas.getLineHeight()) - canvas.getHeight() + 20;
Log.d(TAG, "Scrolling to: " + y); //Log.d(TAG, "Scrolling to: " + y);
canvas.scrollTo(0, y); canvas.scrollTo(0, y);
deckAdapter.notifyDataSetChanged(); deckAdapter.notifyDataSetChanged();