1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 02:42:16 -05:00

Add context to message's render() method for importing drawables

This commit is contained in:
Sebastian Kaspari 2010-03-06 18:59:46 +01:00
parent 25020e3329
commit 83099580b8

View File

@ -199,13 +199,11 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
TextView canvas = (TextView) deckAdapter.getItemByName(target); TextView canvas = (TextView) deckAdapter.getItemByName(target);
if (canvas != null) { if (canvas != null) {
canvas.append(message.render()); canvas.append(message.render(canvas.getContext()));
deckAdapter.notifyDataSetChanged(); deckAdapter.notifyDataSetChanged();
Log.d(TAG, "Target: " + target + " - Switched: " + deckAdapter.getSwitchedName());
if (target.equals(deckAdapter.getSwitchedName())) { if (target.equals(deckAdapter.getSwitchedName())) {
((TextView) deckAdapter.getSwitchedView()).append(message.render()); ((TextView) deckAdapter.getSwitchedView()).append(message.render(canvas.getContext()));
} }
} else { } else {
Log.d(TAG, "No canvas found"); Log.d(TAG, "No canvas found");