public void finish ( ) { if ( mSuccessful ) { mDb . setTransactionSuccessful ( ) ; } mDb . endTransaction ( ) ; if ( mSuccessful ) { for ( OnTransactionCommittedListener listener : mOnTransactionCommittedListeners ) { listener . onTransactionCommitted ( ) ; } } }
Finish the transaction . This will commit or rollback the transaction depending on whether is was marked as successful or not