I just figured out a solution if anyone else has this problem:
Change the import at the top of the snippet from
import android.support.v4.app.ActionBarDrawerToggle;
to
import android.support.v7.app.ActionBarDrawerToggle;
then change the code in setUp from
mDrawerToggle = new ActionBarDrawerToggle( getActivity(), mDrawerLayout, R.drawable.ic_drawer, R.string.navigation_drawer_open, R.string.navigation_drawer_close )
to
mDrawerToggle = new ActionBarDrawerToggle( getActivity(), mDrawerLayout, R.string.navigation_drawer_open, R.string.navigation_drawer_close )
source share