public synchronized void release(int flag){
  if (proximityWakeLock != null && isProximityWakeHeld) {
    boolean usedNewRelease=false;
    if (powerLockReleaseIntMethod != null) {
      try {
        powerLockReleaseIntMethod.invoke(proximityWakeLock,flag);
        usedNewRelease=true;
      }
 catch (      Exception e) {
        Log.d(THIS_FILE,"Error calling new release method ",e);
      }
    }
    if (!usedNewRelease) {
      proximityWakeLock.release();
    }
    isProximityWakeHeld=false;
  }
  if (shouldUseTimeoutOverlay()) {
  }
  if (mDirector != null) {
    mDirector.onProximityTrackingChanged(false);
  }
}

public synchronized void release ( int flag ) { if ( proximityWakeLock != null && isProximityWakeHeld ) { boolean usedNewRelease = false ; if ( powerLockReleaseIntMethod != null ) { try { powerLockReleaseIntMethod . invoke ( proximityWakeLock , flag ) ; usedNewRelease = true ; } catch ( Exception e ) { Log . d ( THIS_FILE , "Error calling new release method " , e ) ; } } if ( ! usedNewRelease ) { proximityWakeLock . release ( ) ; } isProximityWakeHeld = false ; } if ( shouldUseTimeoutOverlay ( ) ) { } if ( mDirector != null ) { mDirector . onProximityTrackingChanged ( false ) ; } }
release any lock taken by the proximity sensor
