Skip to content

Commit

Permalink
fixed bug in WebChromeClient
Browse files Browse the repository at this point in the history
  • Loading branch information
PierfrancescoSoffritti committed Sep 7, 2016
1 parent 07d75b8 commit 6531b75
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ protected void initialize(@Nullable YouTubeListener youTubeListener) {
this.setWebChromeClient(new WebChromeClient() {
@Override
public Bitmap getDefaultVideoPoster() {
Bitmap result = super.getDefaultVideoPoster();
Bitmap result = null;
try {
result = super.getDefaultVideoPoster();
} catch (Exception ignore) {
}

if(result == null)
return Bitmap.createBitmap(1, 1, Bitmap.Config.RGB_565);
else
Expand Down

0 comments on commit 6531b75

Please sign in to comment.