Commit 5fb9bf64 authored by Geoffrey Métais's avatar Geoffrey Métais

Remove redundant call

parent 7afa8ec4
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment