robot append text doubles up?

0 views
Skip to first unread message

Dominic Lovell

unread,
Oct 28, 2009, 2:10:20 AM10/28/09
to Google Wave API
Heres a sample of my code that appends messages, all of my text seems
double up, so my blip will have "HelloHello"

but in my logs, I can see that its only one "Hello"

Has anyone encounted this problem?

...

public static final String INTRODUCTION = "Hello";

...

if ( e.getType() == EventType.WAVELET_SELF_ADDED ) {
Wavelet wavelet = bundle.getWavelet();
Blip blip = wavelet.appendBlip();
TextView textView = blip.getDocument();
textView.append( INTRODUCTION );
log.info( "Sending welcome message " + INTRODUCTION);

}

Austin Chau (Google employee)

unread,
Oct 28, 2009, 2:25:58 AM10/28/09
to google-...@googlegroups.com
This has already been file with this bug report - 


We have identified the problem and the changes should be up in our next push.  In the meantime you can do blip.getDocument().delete() before you call blip.getDocument().append(), that should be the temporary fix to avoid doubling up the text.  

Austin
Reply all
Reply to author
Forward
0 new messages