private boolean hasFullClippingSupport(Canvas c){
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && mIsHardwareAccelerated != null) {
    try {
      return !(Boolean)mIsHardwareAccelerated.invoke(c,(Object[])null);
    }
 catch (    IllegalArgumentException e) {
    }
catch (    IllegalAccessException e) {
    }
catch (    InvocationTargetException e) {
    }
  }
  return true;
}

private boolean hasFullClippingSupport ( Canvas c ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB && mIsHardwareAccelerated != null ) { try { return ! ( Boolean ) mIsHardwareAccelerated . invoke ( c , ( Object [ ] ) null ) ; } catch ( IllegalArgumentException e ) { } catch ( IllegalAccessException e ) { } catch ( InvocationTargetException e ) { } } return true ; }
as of android 4 . 0 . 4 , clipping with op . difference is not supported if hardware acceleration is used . ( see http : / / android - developers . blogspot . de / 2011 / 03 / android - 30 - hardware - acceleration . html ) op . difference and clippath supported as of 18 ! ! ! fixme disable using hw clipping completely for now , see bug https : / / github . com / marcuswolschon / osmeditor4android / issues / 307
