{"action":"opened","issue":{"url":"https://api.github.com/repos/Cleveroad/AdaptiveTableLayout/issues/30","repository_url":"https://api.github.com/repos/Cleveroad/AdaptiveTableLayout","labels_url":"https://api.github.com/repos/Cleveroad/AdaptiveTableLayout/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/Cleveroad/AdaptiveTableLayout/issues/30/comments","events_url":"https://api.github.com/repos/Cleveroad/AdaptiveTableLayout/issues/30/events","html_url":"https://github.com/Cleveroad/AdaptiveTableLayout/issues/30","id":357927229,"node_id":"MDU6SXNzdWUzNTc5MjcyMjk=","number":30,"title":"Table not updating with multiple textviews in item_card","user":{"login":"felipekaisersoft","id":15195978,"node_id":"MDQ6VXNlcjE1MTk1OTc4","avatar_url":"https://avatars2.githubusercontent.com/u/15195978?v=4","gravatar_id":"","url":"https://api.github.com/users/felipekaisersoft","html_url":"https://github.com/felipekaisersoft","followers_url":"https://api.github.com/users/felipekaisersoft/followers","following_url":"https://api.github.com/users/felipekaisersoft/following{/other_user}","gists_url":"https://api.github.com/users/felipekaisersoft/gists{/gist_id}","starred_url":"https://api.github.com/users/felipekaisersoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipekaisersoft/subscriptions","organizations_url":"https://api.github.com/users/felipekaisersoft/orgs","repos_url":"https://api.github.com/users/felipekaisersoft/repos","events_url":"https://api.github.com/users/felipekaisersoft/events{/privacy}","received_events_url":"https://api.github.com/users/felipekaisersoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-07T05:43:59Z","updated_at":"2018-09-07T05:43:59Z","closed_at":null,"author_association":"NONE","body":"Hello, \r\nI've wanted to display a table with 4 TextViews per item, but the table isn't getting updated when I use my modified version of EditItemDialog(to support the 4 TVs I mentioned above).\r\nThe data in the csv gets updated immediately, also if I switch to another fragment and back to the table-fragment, the data's displayed correctly!\r\n\r\nHow can I fix that?\r\n\r\nCode handling EditItemDialog response(GH is bugging...): \r\n\r\n`\r\n\r\n@Override\r\n    public void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n        if (requestCode == EditItemDialog.REQUEST_CODE_EDIT_ITEM && resultCode == Activity.RESULT_OK && data != null) {\r\n            int columnIndex = data.getIntExtra(EditItemDialog.EXTRA_COLUMN_NUMBER, 0);\r\n            int rowIndex = data.getIntExtra(EditItemDialog.EXTRA_ROW_NUMBER, 0);\r\n            String s = data.getStringExtra(EditItemDialog.EXTRA_SUBJECT);\r\n            String t = data.getStringExtra(EditItemDialog.EXTRA_TEACHER);\r\n            String r = data.getStringExtra(EditItemDialog.EXTRA_ROOM);\r\n\r\n            // My attempts to update the layout: \r\n            mCsvFileDataSource.updateItem(rowIndex, columnIndex,\r\n                    CsvFileDataSourceImpl.prepItem(s, t, r));\r\n            mTableAdapter.notifyItemChanged(rowIndex, columnIndex);\r\n            mTableLayout.notifyItemChanged(rowIndex, columnIndex);\r\n            mCsvFileDataSource.applyChanges(getLoaderManager(),\r\n                    mTableLayout.getLinkedAdapterRowsModifications(),\r\n                    mTableLayout.getLinkedAdapterColumnsModifications(),\r\n                    mTableLayout.isSolidRowHeader(),\r\n                    ScheduleFragment.this);\r\n            mTableLayout.setVisibility(View.GONE);\r\n            mTableLayout.setVisibility(View.VISIBLE);\r\n            //mTableLayout.invalidate();\r\n            onFileUpdated(StorageUtils.getScheduleFile(getActivity()).getAbsolutePath(), true); // .getScheduleFile() returns File object\r\n        }\r\n    }\r\n`\r\n\r\n`\r\n\r\n    public static String prepItem(String s, String t, String r) {\r\n        return s + \";\" + t + \";\" + r;\r\n    }\r\n\r\n//...\r\n\r\n    public String getItemData(int rowIndex, int columnIndex, int position) { // helper method for schedule, splits item and returns data at position's index\r\n        try {\r\n            List<String> rowList = getRow(rowIndex);\r\n            return (rowList == null ? \"\" : rowList.get(columnIndex)).split(\";\")[position];\r\n        } catch (Exception e) {\r\n            Log.e(TAG, \"get rowIndex=\" + rowIndex + \"; colIndex=\" + columnIndex + \"; position:\" + position + \"\\ncache = \" +\r\n                    mItemsCache.toString(), e);\r\n            return null;\r\n        }\r\n    }\r\n`\r\n\r\nBest regards, \r\nFelipe\r\n\r\nPS: Except for above issue, it works like a charm!"}}
{"actor":{"display_login":"felipekaisersoft"}}