If people invent hydrogen fuel,this will replace the gasoline.
Maybe the next 20 years, the oil industry will still dominate.
Yes I don't see the Oil industry slowing down in the next couple of century, oil producers will find a way to look for other oil fields. Nowadays they even come up with enhanced oil recovery to make sure there will be no left overs of oil in wells that they drill and develop. Lets keep in mind that most of cars, trucks or anything moving with wheels are designed for fuel consumption if there will be a shift to EV's then that will take a lot of time for people to buy and dispose old vehicles.