use of com.gh4a.utils.HttpImageGetter in project gh4a by slapperwan.
the class IssueFragmentBase method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View listContent = super.onCreateView(inflater, container, savedInstanceState);
View v = inflater.inflate(R.layout.comment_list, container, false);
FrameLayout listContainer = v.findViewById(R.id.list_container);
listContainer.addView(listContent);
mBottomSheet = v.findViewById(R.id.bottom_sheet);
mBottomSheet.setCallback(this);
mBottomSheet.setResizingView(listContainer);
mBottomSheet.setListener(this);
mImageGetter = new HttpImageGetter(inflater.getContext());
updateCommentSectionVisibility(v);
updateCommentLockState();
return v;
}
use of com.gh4a.utils.HttpImageGetter in project gh4a by slapperwan.
the class RepositoryFragment method onActivityCreated.
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mImageGetter = new HttpImageGetter(getActivity());
fillData();
setContentShown(true);
if (savedInstanceState != null) {
mIsReadmeExpanded = savedInstanceState.getBoolean(STATE_KEY_IS_README_EXPANDED, false);
mIsReadmeLoaded = savedInstanceState.getBoolean(STATE_KEY_IS_README_LOADED, false);
}
if (mIsReadmeExpanded || mIsReadmeLoaded) {
loadReadme(false);
}
loadPullRequestCount(false);
updateReadmeVisibility();
}
use of com.gh4a.utils.HttpImageGetter in project gh4a by slapperwan.
the class ReleaseInfoActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.release);
mRootView = findViewById(R.id.root);
mImageGetter = new HttpImageGetter(this);
setChildScrollDelegate(this);
if (mRelease != null) {
handleReleaseReady();
} else {
setContentShown(false);
loadRelease(false);
}
}
Aggregations