Fixed the TabAuto and TabTeleop
This commit is contained in:
@@ -212,13 +212,15 @@ public class Data {
|
||||
|
||||
public void setValueButtonsAuto(int[] valueButtonsAuto) {this.valueButtonsAuto = valueButtonsAuto;}
|
||||
|
||||
public int[] getvalueButtonsAuto() {
|
||||
public int[] getValueButtonsAuto() {
|
||||
return valueButtonsAuto;
|
||||
}
|
||||
|
||||
public void setValueButtonsTele(int[] valueButtonsTele) {this.valueButtonsTele = valueButtonsTele;}
|
||||
public void setValueButtonsTele(int[] valueButtonsTele) {
|
||||
this.valueButtonsTele = valueButtonsTele;
|
||||
}
|
||||
|
||||
public int[] getValueButtonsTele(int[] valueButtonsTeleop) {
|
||||
public int[] getValueButtonsTele() {
|
||||
return valueButtonsTele;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public class TabAuto extends Fragment {
|
||||
numOfButton.setText(String.valueOf(NumButtonOb[tabPosition]));
|
||||
}
|
||||
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
|
||||
EditText[] toAddFields = {ToAdd, ToAdd2, ToAdd3, ToAdd4, ToAdd5, ToAdd6, ToAdd7, ToAdd8, ToAdd9};
|
||||
|
||||
@@ -129,7 +129,7 @@ public class TabAuto extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
valueButtonsAuto[tabPosition * 9] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.setValueButtonsAuto(valueButtonsAuto);
|
||||
Log.d("score", Arrays.toString(valueButtonsAuto));
|
||||
@@ -148,7 +148,7 @@ public class TabAuto extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
valueButtonsAuto[tabPosition * 9 + 1] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.setValueButtonsAuto(valueButtonsAuto);
|
||||
Log.d("score", Arrays.toString(valueButtonsAuto));
|
||||
@@ -167,7 +167,7 @@ public class TabAuto extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
valueButtonsAuto[tabPosition * 9 + 2] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.setValueButtonsAuto(valueButtonsAuto);
|
||||
Log.d("score", Arrays.toString(valueButtonsAuto));
|
||||
@@ -186,7 +186,7 @@ public class TabAuto extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
valueButtonsAuto[tabPosition * 9 + 3] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.setValueButtonsAuto(valueButtonsAuto);
|
||||
Log.d("score", Arrays.toString(valueButtonsAuto));
|
||||
@@ -205,7 +205,7 @@ public class TabAuto extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
valueButtonsAuto[tabPosition * 9 + 4] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.setValueButtonsAuto(valueButtonsAuto);
|
||||
Log.d("score", Arrays.toString(valueButtonsAuto));
|
||||
@@ -224,7 +224,7 @@ public class TabAuto extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
valueButtonsAuto[tabPosition * 9 + 5] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.setValueButtonsAuto(valueButtonsAuto);
|
||||
Log.d("score", Arrays.toString(valueButtonsAuto));
|
||||
@@ -243,7 +243,7 @@ public class TabAuto extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
valueButtonsAuto[tabPosition * 9 + 6] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.setValueButtonsAuto(valueButtonsAuto);
|
||||
Log.d("score", Arrays.toString(valueButtonsAuto));
|
||||
@@ -262,7 +262,7 @@ public class TabAuto extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
valueButtonsAuto[tabPosition * 9 + 7] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.setValueButtonsAuto(valueButtonsAuto);
|
||||
Log.d("score", Arrays.toString(valueButtonsAuto));
|
||||
@@ -281,7 +281,7 @@ public class TabAuto extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsAuto = EventsActivity.Data.getvalueButtonsAuto();
|
||||
valueButtonsAuto = EventsActivity.Data.getValueButtonsAuto();
|
||||
valueButtonsAuto[tabPosition * 9 + 8] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.setValueButtonsAuto(valueButtonsAuto);
|
||||
Log.d("score", Arrays.toString(valueButtonsAuto));
|
||||
|
||||
@@ -82,7 +82,7 @@ public class TabTeleop extends Fragment {
|
||||
numOfButton.setText(String.valueOf(NumButtonOb[tabPosition]));
|
||||
}
|
||||
|
||||
valueButtonsTeleop = EventsActivity.Data.getNumButtonObTeleop();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
|
||||
EditText[] toAddFields = {ToAdd, ToAdd2, ToAdd3, ToAdd4, ToAdd5, ToAdd6, ToAdd7, ToAdd8, ToAdd9};
|
||||
|
||||
@@ -127,9 +127,9 @@ public class TabTeleop extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
valueButtonsTeleop[tabPosition * 9] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
EventsActivity.Data.setValueButtonsTele(valueButtonsTeleop);
|
||||
Log.d("score", Arrays.toString(valueButtonsTeleop));
|
||||
|
||||
|
||||
@@ -146,9 +146,9 @@ public class TabTeleop extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
valueButtonsTeleop[tabPosition * 9 + 1] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
EventsActivity.Data.setValueButtonsTele(valueButtonsTeleop);
|
||||
Log.d("score", Arrays.toString(valueButtonsTeleop));
|
||||
|
||||
|
||||
@@ -165,9 +165,9 @@ public class TabTeleop extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
valueButtonsTeleop[tabPosition * 9 + 2] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
EventsActivity.Data.setValueButtonsTele(valueButtonsTeleop);
|
||||
Log.d("score", Arrays.toString(valueButtonsTeleop));
|
||||
|
||||
|
||||
@@ -184,9 +184,9 @@ public class TabTeleop extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
valueButtonsTeleop[tabPosition * 9 + 3] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
EventsActivity.Data.setValueButtonsTele(valueButtonsTeleop);
|
||||
Log.d("score", Arrays.toString(valueButtonsTeleop));
|
||||
|
||||
|
||||
@@ -203,9 +203,9 @@ public class TabTeleop extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
valueButtonsTeleop[tabPosition * 9 + 4] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
EventsActivity.Data.setValueButtonsTele(valueButtonsTeleop);
|
||||
Log.d("score", Arrays.toString(valueButtonsTeleop));
|
||||
|
||||
|
||||
@@ -222,9 +222,9 @@ public class TabTeleop extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
valueButtonsTeleop[tabPosition * 9 + 5] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
EventsActivity.Data.setValueButtonsTele(valueButtonsTeleop);
|
||||
Log.d("score", Arrays.toString(valueButtonsTeleop));
|
||||
|
||||
|
||||
@@ -241,9 +241,9 @@ public class TabTeleop extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
valueButtonsTeleop[tabPosition * 9 + 6] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
EventsActivity.Data.setValueButtonsTele(valueButtonsTeleop);
|
||||
Log.d("score", Arrays.toString(valueButtonsTeleop));
|
||||
|
||||
|
||||
@@ -260,9 +260,9 @@ public class TabTeleop extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
valueButtonsTeleop[tabPosition * 9 + 7] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
EventsActivity.Data.setValueButtonsTele(valueButtonsTeleop);
|
||||
Log.d("score", Arrays.toString(valueButtonsTeleop));
|
||||
|
||||
|
||||
@@ -279,9 +279,9 @@ public class TabTeleop extends Fragment {
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
String input = s.toString();
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
valueButtonsTeleop = EventsActivity.Data.getValueButtonsTele();
|
||||
valueButtonsTeleop[tabPosition * 9 + 8] = input.isEmpty() ? 0 : Integer.parseInt(input);
|
||||
EventsActivity.Data.getValueButtonsTele(valueButtonsTeleop);
|
||||
EventsActivity.Data.setValueButtonsTele(valueButtonsTeleop);
|
||||
Log.d("score", Arrays.toString(valueButtonsTeleop));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user