Skip to content

Commit

Permalink
1.0.14
Browse files Browse the repository at this point in the history
Don't completely do the wrong thing for nodes without the " -#"
  • Loading branch information
niccellular committed May 1, 2024
1 parent 7822ddf commit 7ca0bda
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ public void onReceive(Context context, Intent intent) {
String[] teamColor = {"Unknown", " -0"};
try {
teamColor = nodeName.split("((?= -[0-9]?$))");
if (teamColor.length < 2) {
teamColor = new String[]{nodeName, " -10"};
}
groupDetail.setAttribute("role", "Team Member");
switch (teamColor[1]) {
case " -0":
Expand Down

0 comments on commit 7ca0bda

Please sign in to comment.