Search in sources :

Example 6 with SearchActivity

use of net.osmand.plus.activities.search.SearchActivity in project Osmand by osmandapp.

the class FavoritesListFragment method onPause.

@Override
public void onPause() {
    super.onPause();
    if (getActivity() instanceof SearchActivity) {
        OsmandApplication app = getMyApplication();
        app.getLocationProvider().removeCompassListener(this);
        app.getLocationProvider().addCompassListener(app.getLocationProvider().getNavigationInfo());
        compassRegistered = false;
    }
}
Also used : OsmandApplication(net.osmand.plus.OsmandApplication) SearchActivity(net.osmand.plus.activities.search.SearchActivity)

Aggregations

SearchActivity (net.osmand.plus.activities.search.SearchActivity)6 OsmandApplication (net.osmand.plus.OsmandApplication)4 LatLon (net.osmand.data.LatLon)3 TextView (android.widget.TextView)2 Intent (android.content.Intent)1 FragmentActivity (android.support.v4.app.FragmentActivity)1 Menu (android.view.Menu)1 MenuItem (android.view.MenuItem)1 OnMenuItemClickListener (android.view.MenuItem.OnMenuItemClickListener)1 View (android.view.View)1 AdapterView (android.widget.AdapterView)1 ImageView (android.widget.ImageView)1 ListView (android.widget.ListView)1 FavouritePoint (net.osmand.data.FavouritePoint)1