Adrian Garcia, 21, was arrested near a San Joaquin County courthouse on Monday, police said.
Detectives said a fight broke out at the Hangar Barbecue bar and restaurant on February 26, and Garcia pulled out a gun and started shooting. No one was hurt.
Garcia was booked into the Merced County Jail.
He is a known gang member.