static void processTabClick(Activity a, View v, int current) { int id = v.getId(); if (id == current) { return; } final TabWidget ll = (TabWidget) a.findViewById(R.id.buttonbar); activateTab(a, id); if (id != R.id.nowplayingtab) { ll.setCurrentTab((Integer) v.getTag()); setIntPref(a, "activetab", id); } }