mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-29 12:22:21 -05:00
Add context to message's render() method for importing drawables
This commit is contained in:
parent
25020e3329
commit
83099580b8
@ -199,13 +199,11 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
|
||||
TextView canvas = (TextView) deckAdapter.getItemByName(target);
|
||||
|
||||
if (canvas != null) {
|
||||
canvas.append(message.render());
|
||||
canvas.append(message.render(canvas.getContext()));
|
||||
deckAdapter.notifyDataSetChanged();
|
||||
|
||||
Log.d(TAG, "Target: " + target + " - Switched: " + deckAdapter.getSwitchedName());
|
||||
|
||||
if (target.equals(deckAdapter.getSwitchedName())) {
|
||||
((TextView) deckAdapter.getSwitchedView()).append(message.render());
|
||||
((TextView) deckAdapter.getSwitchedView()).append(message.render(canvas.getContext()));
|
||||
}
|
||||
} else {
|
||||
Log.d(TAG, "No canvas found");
|
||||
|
Loading…
Reference in New Issue
Block a user