am 344e27f2: am e0db6a0c: am 392863b7: Merge "Remove tab only if tab exists."

* commit '344e27f238903a46cb48082453abb357052e19d1':
  Remove tab only if tab exists.
This commit is contained in:
Xavier Ducrohet
2012-06-06 14:54:49 -07:00
committed by Android Git Automerger

View File

@@ -52,7 +52,9 @@ public class ActionBarTabs extends Activity {
public void onRemoveTab(View v) {
final ActionBar bar = getActionBar();
bar.removeTabAt(bar.getTabCount() - 1);
if (bar.getTabCount() > 0) {
bar.removeTabAt(bar.getTabCount() - 1);
}
}
public void onToggleTabs(View v) {