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

* commit '392863b774874dff5ca4df3d336c5d459f014697':
  Remove tab only if tab exists.
This commit is contained in:
Xavier Ducrohet
2012-06-06 14:50:50 -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) {