<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;
    private boolean paused = true;

    protected CgeoApplication app = null;
    protected Resources res = null;
    protected void setListAdapter(final ListAdapter adapter) {
        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());
    }

    @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;
    }
}

<MSG> fix #3522: do not asynchronously play with GPS status

<DFF> @@ -11,7 +11,6 @@ public abstract class AbstractListActivity extends FragmentListActivity implemen
         IAbstractActivity {
 
     private boolean keepScreenOn = false;
-    private boolean paused = true;
 
     protected CgeoApplication app = null;
     protected Resources res = null;
@@ -85,26 +84,4 @@ 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;
-    }
 }

fix #3522: do not asynchronously play with GPS status