use of org.eyeseetea.malariacare.domain.exception.LoadingSurveyException in project pictureapp by EyeSeeTea.
the class SurveyFragment method showSurvey.
private void showSurvey() {
try {
LayoutInflater inflater = LayoutInflater.from(getActivity().getApplicationContext());
dynamicTabAdapter = new DynamicTabAdapter(getActivity(), mReviewMode);
View viewContent = inflater.inflate(dynamicTabAdapter.getLayout(), content, false);
content.removeAllViews();
content.addView(viewContent);
ListView listViewTab = (ListView) llLayout.findViewById(R.id.listView);
dynamicTabAdapter.addOnSwipeListener(listViewTab);
listViewTab.setAdapter(dynamicTabAdapter);
hideProgress();
} catch (NullPointerException e) {
new LoadingSurveyException(e);
}
}
Aggregations