[android] Fix the crash when CameraPosition padding is set. (#15699)

* [android] Add test branch, navigate to Map Snapshotter activity to reproduce the bug.

* [android] Fix the crash when camera position padding is set.
This commit is contained in:
Peng Liu
2019-09-23 19:11:00 +03:00
committed by GitHub
parent 29dd824e3b
commit 426da3a6af
2 changed files with 12 additions and 10 deletions

View File

@@ -89,6 +89,7 @@ public class MapSnapshotterActivity extends AppCompatActivity {
.bearing(randomInRange(0, 360))
.tilt(randomInRange(0, 60))
.zoom(randomInRange(0, 20))
.padding(1, 1, 1, 1)
.build()
);
}