<NME> NavigationActionProvider.java
<BEF> package cgeo.geocaching.ui;

import cgeo.geocaching.R;
import cgeo.geocaching.activity.INavigationSource;

import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.LayoutInflater;
import android.view.View;

public class NavigationActionProvider extends ActionProvider {

    private final Context context;
    private final Context context;
    private INavigationSource navigationSource;

    /**
     * Creates a new instance. ActionProvider classes should always implement a
     * constructor that takes a single Context parameter for inflating from menu XML.
     *
     * @param context Context for accessing resources.
     */
    public NavigationActionProvider(final Context context) {
        super(context);
        this.context = context;
    }

    public void setNavigationSource(final INavigationSource navigationSource) {
        this.navigationSource = navigationSource;
    }

    @SuppressLint("InflateParams")
    @Override
    public View onCreateActionView() {

        View view = null;

        if (navigationSource != null) {

            final LayoutInflater layoutInflater = LayoutInflater.from(context);
            view = layoutInflater.inflate(R.layout.navigation_action, null);

            final View navItem = view.findViewById(R.id.default_navigation_action);

            navItem.setOnClickListener(v -> navigationSource.startDefaultNavigation());

            navItem.setOnLongClickListener(v -> {
                navigationSource.startDefaultNavigation2();
                return true;
            });
        }

        return view;

    }

}

<MSG> add javadoc, remove compiler warning
<DFF> @@ -9,6 +9,10 @@ import android.support.v4.view.ActionProvider;
 import android.view.LayoutInflater;
 import android.view.View;
 
+/**
+ * Action provider showing the compass icon, and reacting to normal click (primary navigation) and long click (secondary
+ * navigation).
+ */
 public class NavigationActionProvider extends ActionProvider {
 
     private final Context context;

add javadoc, remove compiler warning