revert banktags: move new tagtab button to the bottom of the list 358703f307

This commit is contained in:
Ron Young
2020-01-09 07:39:45 -06:00
parent 8eee9d12f6
commit 5b7eb0adaf

View File

@@ -981,7 +981,7 @@ public class TabInterface
} }
int proposedIndex = currentTabIndex + direction; int proposedIndex = currentTabIndex + direction;
int numTabs = tabManager.size() + 1; int numTabs = tabManager.size();
if (proposedIndex >= numTabs || proposedIndex < 0) if (proposedIndex >= numTabs || proposedIndex < 0)
{ {
@@ -1075,7 +1075,7 @@ public class TabInterface
{ {
int y = bounds.y + MARGIN + BUTTON_HEIGHT; int y = bounds.y + MARGIN + BUTTON_HEIGHT;
if (maxTabs > tabManager.size()) if (maxTabs >= tabManager.size())
{ {
currentTabIndex = 0; currentTabIndex = 0;
} }
@@ -1122,8 +1122,6 @@ public class TabInterface
} }
} }
updateWidget(newTab, y);
boolean hidden = !(tabManager.size() > 0); boolean hidden = !(tabManager.size() > 0);
upButton.setHidden(hidden); upButton.setHidden(hidden);