Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - allow snapshot generation without overlain view content
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Apr 12, 2019
1 parent 714b2bc commit 19c6010
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1047,10 +1047,15 @@ protected void onSnapshotReady(@Nullable Bitmap mapContent) {
if (checkState("OnSnapshotReady")) {
return;
}

Bitmap viewContent = viewCallback.getViewContent();
if (snapshotReadyCallback != null && mapContent != null && viewContent != null) {
snapshotReadyCallback.onSnapshotReady(BitmapUtils.mergeBitmap(mapContent, viewContent));
if (snapshotReadyCallback != null && mapContent != null) {
if (viewCallback == null) {
snapshotReadyCallback.onSnapshotReady(mapContent);
} else {
Bitmap viewContent = viewCallback.getViewContent();
if (viewContent != null) {
snapshotReadyCallback.onSnapshotReady(BitmapUtils.mergeBitmap(mapContent, viewContent));
}
}
}
}

Expand Down

0 comments on commit 19c6010

Please sign in to comment.