mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Disable picture listener once event has occurred.
This commit is contained in:
parent
b65f9517db
commit
f220489543
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user