Commit c68112c5 authored by rakam's avatar rakam
Browse files

Fix awful bug in FileManager :D

parent e33d69de
......@@ -45,21 +45,22 @@ public class FileManager {
String s;
char automate;
Automate aut;
int service, side, first, second, res;
int service, side, idMatch;
char decimal, unite;
s = ReadScore(context);
automate = s.charAt(0);
service = Character.getNumericValue(s.charAt(1));
side = Character.getNumericValue(s.charAt(2));
first = Character.getNumericValue(s.charAt(3));
second = Character.getNumericValue(s.charAt(4));
res = first + second;
decimal = s.charAt(3);
unite = s.charAt(4);
idMatch = Integer.valueOf("" + decimal + unite);
if (automate == 'S') {
aut = new AutomateSimple(context, service, ((side == 1) ? true : false), Integer.valueOf(res), false);
aut = new AutomateSimple(context, service, side == 1, idMatch, false);
} else if (automate == 'D') {
aut = new AutomateDouble(context, service, ((side == 1) ? true : false), Integer.valueOf(res), false);
aut = new AutomateDouble(context, service, side == 1, idMatch, false);
} else {
aut = new AutomateDoublePro(context, service, ((side == 1) ? true : false), Integer.valueOf(res), false);
aut = new AutomateDoublePro(context, service, side == 1, idMatch, false);
}
for (int i = 5; i < s.length(); i++) {
// Toast.makeText(context, "Point " + Character.getNumericValue(s.charAt(i)), Toast.LENGTH_SHORT).show();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment