Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - expose attribution manager as public API
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Jan 17, 2018
1 parent 69ac7b6 commit 39ef624
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Toast;

import com.mapbox.mapboxsdk.R;
import com.mapbox.mapboxsdk.attribution.Attribution;
import com.mapbox.mapboxsdk.attribution.AttributionParser;
Expand All @@ -30,7 +31,7 @@
* Additionally an telemetry option item is shown to configure telemetry settings.
* </p>
*/
class AttributionDialogManager implements View.OnClickListener, DialogInterface.OnClickListener {
public class AttributionDialogManager implements View.OnClickListener, DialogInterface.OnClickListener {

private static final String MAP_FEEDBACK_URL = "https://www.mapbox.com/map-feedback";
private static final String MAP_FEEDBACK_LOCATION_FORMAT = MAP_FEEDBACK_URL + "/#/%f/%f/%d";
Expand All @@ -40,7 +41,7 @@ class AttributionDialogManager implements View.OnClickListener, DialogInterface.
private String[] attributionTitles;
private Set<Attribution> attributionSet;

AttributionDialogManager(@NonNull Context context, @NonNull MapboxMap mapboxMap) {
public AttributionDialogManager(@NonNull Context context, @NonNull MapboxMap mapboxMap) {
this.context = context;
this.mapboxMap = mapboxMap;
}
Expand All @@ -52,7 +53,7 @@ public void onClick(View view) {
showAttributionDialog();
}

private void showAttributionDialog() {
protected void showAttributionDialog() {
attributionTitles = getAttributionTitles();
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(R.string.mapbox_attributionsDialogTitle);
Expand Down

0 comments on commit 39ef624

Please sign in to comment.