mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-12-01 13:22:20 -05:00
Show messages in channel canvas
This commit is contained in:
parent
ebf72421cb
commit
c1f392bf08
@ -100,6 +100,11 @@ public class DeckAdapter extends BaseAdapter
|
|||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updated()
|
||||||
|
{
|
||||||
|
//notifyDataSetChanged();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get view at given position
|
* Get view at given position
|
||||||
*/
|
*/
|
||||||
|
@ -172,7 +172,16 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
|
|||||||
{
|
{
|
||||||
String message = server.getChannel(target).pollMessage();
|
String message = server.getChannel(target).pollMessage();
|
||||||
|
|
||||||
Toast.makeText(this, "(" + target + ") " + message, Toast.LENGTH_SHORT).show();
|
TextView canvas = (TextView) deckAdapter.getItemByName(target);
|
||||||
|
|
||||||
|
if (canvas != null) {
|
||||||
|
Log.d(TAG, "Got canvas, setting text");
|
||||||
|
canvas.append("\n" + message);
|
||||||
|
deckAdapter.notifyDataSetChanged();
|
||||||
|
} else {
|
||||||
|
Log.d(TAG, "No canvas found");
|
||||||
|
}
|
||||||
|
//Toast.makeText(this, "(" + target + ") " + message, Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user