Canvas draw once flashing
<p>I have a game loop that's drawing to the canvas, when I open the menu within the game I want to be able to display the game in the background and overlay a transparent layer on top. The problem is when I draw this layer once it keeps flashing all over the place instead of being persistent. Here's the code I'm using to draw the layer.</p>

<pre><code>public void Render(Canvas canvas)
{
    if(isVisable)
    {
        if(mDrawOnce)
        {
            canvas.drawPaint(mBGPaint);
            mDrawOnce = false;
        }
    }
}
</code></pre>
