package nerd.tuxmobil.fahrplan.congress;

import android.support.v7.app.ActionBarActivity;
import android.widget.HeaderViewListAdapter;
import android.widget.ListView;

import android.widget.ListAdapter;

/**
 * + * Taken from http://stackoverflow
 * .com/questions/18403647/actionbaractivity-of-android-support-v7-appcompat-and
 * -listactivity-in-same-act
 * +
 */
public abstract class ActionBarListActivity extends ActionBarActivity {

    private ListView mListView;

    protected ListView getListView() {
        if (mListView == null) {
            mListView = (ListView) findViewById(android.R.id.list);
        }
        return mListView;
    }

    protected void setListAdapter(ListAdapter adapter) {
        getListView().setAdapter(adapter);
    }

    protected ListAdapter getListAdapter() {
        ListAdapter adapter = getListView().getAdapter();
        if (adapter instanceof HeaderViewListAdapter) {
            return ((HeaderViewListAdapter) adapter).getWrappedAdapter();
        } else {
            return adapter;
        }
    }
}
@@ -84,16 +84,42 @@
 tivity;%0A
+import android.view.View;%0A
 import a
@@ -1075,10 +1075,384 @@
  %7D%0A    %7D
+%0A%0A    @Override%0A    public void setContentView(int layoutResID) %7B%0A        super.setContentView(layoutResID);%0A        if (mListView == null) %7B%0A            mListView = (ListView) findViewById(android.R.id.list);%0A        %7D%0A        View emptyView = findViewById(android.R.id.empty);%0A        if (emptyView != null) %7B%0A            mListView.setEmptyView(emptyView);%0A        %7D%0A    %7D
 %0A%7D

Add missing support for empty view in ListView