revert banktags: move new tagtab button to the bottom of the list 358703f307
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user