private void showProgress(final boolean loading) {
        final View progressBar = findViewById(R.id.loading);
        progressBar.setVisibility(loading ? View.VISIBLE : View.GONE);
        final ListView list = getListView();
        list.setVisibility(loading ? View.GONE : View.VISIBLE);
    }
Check if the list is empty and prompt for deletion
main/src/main/java/cgeo/geocaching/CacheListActivity.java