<NME> AbstractListActivity.java
<BEF> package cgeo.geocaching.activity;

import android.widget.HeaderViewListAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

public abstract class AbstractListActivity extends AbstractBottomNavigationActivity {
    private ListView mListView;

    protected ListView getListView() {
        IAbstractActivity {

    private boolean keepScreenOn = false;

    protected CgeoApplication app = null;
    protected Resources res = null;
        getListView().setAdapter(adapter);
    }

    protected ListAdapter getListAdapter() {
        final ListAdapter adapter = getListView().getAdapter();
        if (adapter instanceof HeaderViewListAdapter) {
            return ((HeaderViewListAdapter) adapter).getWrappedAdapter();
        }
        return adapter;
    }
}
        // initialize action bar title with activity title
        ActivityMixin.setTitle(this, getTitle());
    }
}

<MSG> Merge branch 'release' into upstream

<DFF> @@ -11,6 +11,7 @@ public abstract class AbstractListActivity extends FragmentListActivity implemen
         IAbstractActivity {
 
     private boolean keepScreenOn = false;
+    private boolean paused = true;
 
     protected CgeoApplication app = null;
     protected Resources res = null;
@@ -84,4 +85,26 @@ public abstract class AbstractListActivity extends FragmentListActivity implemen
         // initialize action bar title with activity title
         ActivityMixin.setTitle(this, getTitle());
     }
+
+    @Override
+    public void onResume() {
+        paused = false;
+        super.onResume();
+    }
+
+    @Override
+    public void onPause() {
+        super.onPause();
+        paused = true;
+    }
+
+    /**
+     * Check if the current activity is paused. This must be called and acted
+     * upon only from the UI thread.
+     *
+     * @return <code>true</code> if the current activity is paused
+     */
+    protected boolean isPaused() {
+        return paused;
+    }
 }

Merge branch 'release' into upstream