-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Surveys ordered alphabetically. #3
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corregir algunos fallos.
@@ -12,6 +12,7 @@ | |||
import android.widget.Toast; | |||
|
|||
import java.util.ArrayList; | |||
import java.util.Collections; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¿ Necesaria implementación ? Ya esta importada en la clase necesaria.
@@ -67,8 +67,7 @@ public void setImage(String image) { | |||
this.image = image; | |||
} | |||
|
|||
public int[] getQuestions() { | |||
return questions; | |||
public int[] getQuestions() {return questions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quizá con un espacio puede quedar más limpio el código.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better leave things as they are if there is no meaningful change. Try to revert these lines
@@ -226,6 +228,12 @@ private void fetchAllSurveys() { | |||
APIService.OnResponse<SurveysModel> onSurveysResponse = new APIService.OnResponse<SurveysModel>() { | |||
@Override | |||
public void onSuccess(SurveysModel surveysModel) { | |||
Collections.sort(surveysModel.getSurveys(), new Comparator<SurveyModel>() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¿Algún comentario de como funciona?
No description provided.