| | |
| | | private List mCredentialsList;
|
| | | private LinearLayout mBaseLayout;
|
| | |
|
| | | private String[] countryWordData;
|
| | | private List<String> countryWordList;
|
| | | private HashMap<String, List<String>> countryData;
|
| | | private List<String> uniqueFirstLetterList;
|
| | | private HashMap<String, List<String>> countriesGroupByFirstLetter;
|
| | |
|
| | | private static RegisterFragment instance = new RegisterFragment();
|
| | |
|
| | |
| | |
|
| | | @OnClick(R.id.register_country)
|
| | | public void register_country_click(View view) {
|
| | | CountrySelectionDialog countrySelectionPopup = new CountrySelectionDialog(getActivity(),
|
| | | countryWordData,countryWordList,countryData);
|
| | | CountrySelectionDialog countrySelectionPopup = new CountrySelectionDialog(getActivity(),uniqueFirstLetterList,countriesGroupByFirstLetter);
|
| | | countrySelectionPopup.showAtLocation(mBaseLayout, Gravity.CENTER,0,0);
|
| | | countrySelectionPopup.addOkButtonClickedListener(new OkButtonClickedListener() {
|
| | | @Override
|
| | |
| | | this.mCredentialsList = credentialsList;
|
| | | }
|
| | |
|
| | | public void setCountryData(String[] countryWordData, List<String> countryWordList, HashMap<String, List<String>> countryData) {
|
| | | this.countryData = countryData;
|
| | | this.countryWordList = countryWordList;
|
| | | this.countryData = countryData;
|
| | | public void setCountryData(List<String> uniqueFirstLetterList, HashMap<String, List<String>> countriesGroupByFirstLetter) {
|
| | | this.uniqueFirstLetterList = uniqueFirstLetterList;
|
| | | this.countriesGroupByFirstLetter = countriesGroupByFirstLetter;
|
| | | }
|
| | |
|
| | | @Override
|