Skip to content
Snippets Groups Projects
Commit 5fb9bf64 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Remove redundant call

parent 7afa8ec4
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,9 @@ public class NetworkBrowserFragment extends BaseBrowserFragment {
}
});
else {
if (!mAdapter.isEmpty())
mAdapter.removeItem(mAdapter.getItemCount() - 1);
int itemCount = mAdapter.getItemCount();
if (itemCount > 0)
mAdapter.removeItem(itemCount - 1);
mHandler.sendEmptyMessage(BrowserFragmentHandler.MSG_HIDE_LOADING);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment