Small improvements to the example

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2173 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
sekelsenmat 2011-11-28 07:29:20 +00:00
parent 4cac065b2a
commit caad03f788

View File

@ -16,6 +16,8 @@ public class LCLActivity extends Activity
public LCLSurface(Context context)
{
super(context);
// Allows View.postInvalidate() to work
setWillNotDraw(false);
}
@Override protected void onDraw(Canvas canvas)
@ -43,6 +45,7 @@ public class LCLActivity extends Activity
// setContentView(tv);
LCLSurface lclsurface = new LCLSurface(this);
setContentView(lclsurface);
lclsurface.postInvalidate();
}
// JNI table of functions