private void clearQueues ( final Context context ) { synchronized ( eventLock ) { DBAdapter adapter = loadDBAdapter ( context ) ; DBAdapter . Table tableName = DBAdapter . Table . EVENTS ; adapter . removeEvents ( tableName ) ; tableName = DBAdapter . Table . PROFILE_EVENTS ; adapter . removeEvents ( tableName ) ; clearUserContext ( context ) ; } }
Only call async