The O2 sensor and intake air sensor are seperate.
Your O2 is a 3 wire setup.
The ACT only reads incoming air temp and i highly doubt thats your issue.
@RonD can explain this better to you then i ever could, but you should check the voltage going to the O2 and the voltage coming out of the O2 and verify that voltage is getting to the ECM.
I believe a O2 drops voltage when lean, so what im getting at is if the ECM is getting a low or zero voltage from the O2 (due to a bad wire) its going to think the engine is lean, so its going to pour fuel to compensate, once its dumping all the fuel it can and the ECM says "what the hell is going on" it threw the adaptive fuel code.
The engine is now taking in enough fuel to compensate for a massive amount of air that isnt there, and its flooding itself.