Skip to content

Commit

Permalink
Don't display issue/PR content while loading if we have an initial co…
Browse files Browse the repository at this point in the history
…mment
  • Loading branch information
Fs00 committed Nov 12, 2021
1 parent 47431b7 commit e25374e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/java/com/gh4a/fragment/IssueFragmentBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
// We make the content container visible so that the issue/PR can be read while the rest
// of the conversation is still loading
view.findViewById(R.id.content_container).setVisibility(View.VISIBLE);
// We want to make the user able to read the issue/PR while the rest of the conversation is still loading
if (mInitialComment == null) {
view.findViewById(R.id.content_container).setVisibility(View.VISIBLE);
}

BaseActivity activity = getBaseActivity();
activity.addAppBarOffsetListener(mBottomSheet);
Expand Down

0 comments on commit e25374e

Please # to comment.