fixed crash selecting attendee name
This commit is contained in:
@@ -237,7 +237,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
textName.setOnTouchListener((View.OnTouchListener) (paramView, paramMotionEvent) -> false);
|
textName.setOnTouchListener((View.OnTouchListener) (paramView, paramMotionEvent) -> false);
|
||||||
|
|
||||||
textName.setOnItemClickListener((arg0, view, arg2, arg3) -> fillWithSelectedAtt());
|
textName.setOnItemClickListener((arg0, view, arg2, arg3) -> fillWithSelectedAtt(meetingIndex));
|
||||||
|
|
||||||
/*dropdown.setOnClickListener(v -> {
|
/*dropdown.setOnClickListener(v -> {
|
||||||
textName.showDropDown();
|
textName.showDropDown();
|
||||||
@@ -245,11 +245,11 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
});*/
|
});*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private void fillWithSelectedAtt() {
|
private void fillWithSelectedAtt(int meetingIndex) {
|
||||||
AutoCompleteTextView textName = findViewById(R.id.textBoxName);
|
AutoCompleteTextView textName = findViewById(R.id.textBoxName);
|
||||||
EditText editAtt = findViewById(R.id.editAtt);
|
EditText editAtt = findViewById(R.id.editAtt);
|
||||||
int found = getMeetings().get(getLastMeeting()).searchAttendee(textName.getText().toString());
|
int found = getMeetings().get(meetingIndex).searchAttendee(textName.getText().toString());
|
||||||
editAtt.setText(getMeetings().get(getLastMeeting()).attendees.get(found).num);
|
editAtt.setText(getMeetings().get(meetingIndex).attendees.get(found).num);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void fillMeeting(int id) {
|
public void fillMeeting(int id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user