Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
Recreate Graphic if null
Browse files Browse the repository at this point in the history
  • Loading branch information
rorist committed Sep 7, 2011
1 parent 5bd2e6b commit f1f535c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/com/nutiteq/android/MapView.java
Expand Up @@ -53,7 +53,7 @@ public Graphics getGraphics(){
@Override @Override
protected void onDraw(final Canvas canvas) { protected void onDraw(final Canvas canvas) {
try { try {
if (wrapped != canvas) { if (wrapped != canvas || g == null) {
wrapped = canvas; wrapped = canvas;
g = new Graphics(wrapped); g = new Graphics(wrapped);
// TODO jaanus : what happens on size change // TODO jaanus : what happens on size change
Expand Down

0 comments on commit f1f535c

Please sign in to comment.