Skip to content

Commit

Permalink
Merge pull request #4220 from malirauf/fix#4168
Browse files Browse the repository at this point in the history
Fix #4168
  • Loading branch information
VishalNehra authored Jul 17, 2024
2 parents 2912138 + ff0d6b5 commit 7f46cd3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,12 @@ public void rename(final HybridFileParcelable f) {
}

public void computeScroll() {
View vi = listView.getChildAt(0);
View vi = null;

if (listView != null) {
vi = listView.getChildAt(0);
}

int top = (vi == null) ? 0 : vi.getTop();
int index;
if (mainFragmentViewModel.isList()) index = mLayoutManager.findFirstVisibleItemPosition();
Expand Down

0 comments on commit 7f46cd3

Please sign in to comment.