How can I exit the onDraw() method
===

I am trying to control when paint on canvas, with conditions in vars, although regardless of the canvas through everything so that it breaks my conditions, could exit the method in some way?

The code:

    protected void onDraw(Canvas canvas) {
    	super.onDraw(canvas);
    	if (b == 0) {			
    		if(condition){
    			b=2;
    			Log.v(LOGTAG,"BEFORE: "+b);
    			callfunct2();
    		}
    	}else if(b==1){
    		callfunct();	
    	}
    		Log.v(LOGTAG,"AFTER: "+b);
    	b++;
    }

The LOG:

    07-31 10:07:54.356: V/(700): BEFORE: 2
    07-31 10:07:54.385: V/(700): AFTER: 2
    07-31 10:07:54.446: D/skia(700): purging 194K from font cache [25 entries]
    07-31 10:07:55.095: V/(700): AFTER: 3
    07-31 10:07:55.356: V/(700): AFTER: 4

How could exit the method when a certain condition to avoid running other conditions?

Thankss!

