@Override protected void initData() { repository = (Repository) context.getIntent().getSerializableExtra(Constants.Extra.REPOSITORY); curBranch = repository.getMasterBranch(); setLoadCache(CacheUtils.contain(getCacheName())); if (currCodeTree == null) execute(); else { ViewUtils.setVisibility(listPopup, View.VISIBLE, R.anim.alpha_in); branch.setText(curBranch); codeAdapter.setCodeTree(currCodeTree); if (!currCodeTree.name.equals(CodeTree.ROOT)) pathView.resetView(currCodeTree.currEntry.getPath()); } }
private void showData() { codeAdapter.setCodeTree(currCodeTree); ViewUtils.setVisibility(listPopup, View.VISIBLE, R.anim.alpha_in); branch.setText(curBranch); }