public PostListAdapter(Context c, List<PostVO> postVOs, FragmentActivity fragmentActivity) { super(c, R.layout.post_list_adapter_row, postVOs); this.context = c; this.postVOs = postVOs; this.activity = fragmentActivity; prefs = context.getSharedPreferences("MisPreferencias", Context.MODE_PRIVATE); dataBaseLikeHandler = new DataBaseLikeHandler(c); dataBaseCommentHandle = new DataBaseCommentsHandler(c); dataBaseCommentHandle.open(); reloadListComments(); preferences = fragmentActivity.getSharedPreferences("MyShared", Context.MODE_PRIVATE); }
private void reloadListComments() { commentsListMaps = dataBaseCommentHandle.returnValue(); }