Disable picture listener once event has occurred.

This commit is contained in:
Bryce Curtis 2011-02-01 11:25:01 -06:00
parent b65f9517db
commit f220489543

View File

@ -955,9 +955,10 @@ public class DroidGap extends PhonegapActivity {
// If splash screen is showing, clear it // If splash screen is showing, clear it
if (this.ctx.splashscreen != 0) { if (this.ctx.splashscreen != 0) {
this.ctx.splashscreen = 0; this.ctx.splashscreen = 0;
view.setPictureListener(new PictureListener(){ appView.setPictureListener(new PictureListener(){
public void onNewPicture(WebView viewtwo, Picture picture) { public void onNewPicture(WebView viewtwo, Picture picture) {
appView.setBackgroundResource(0); appView.setBackgroundResource(0);
appView.setPictureListener(null);
} }
}); });
} }