diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2018-01-17 10:33:36 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2018-01-18 14:12:38 +0100 |
commit | da891fc166c3dd67eb6bd5d5c2df715d0ea12c34 (patch) | |
tree | b383ccca8254b21d251295048e4d8bef2e3074c3 /platform/android | |
parent | 11fa52a1feaa6e348d2d4879918d583f29151d65 (diff) | |
download | qtlocation-mapboxgl-da891fc166c3dd67eb6bd5d5c2df715d0ea12c34.tar.gz |
[android] - expose attribution manager as public API
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/AttributionDialogManager.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/AttributionDialogManager.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/AttributionDialogManager.java index 2956d864e6..2e7afe2d59 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/AttributionDialogManager.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/AttributionDialogManager.java @@ -10,6 +10,7 @@ import android.support.annotation.NonNull; 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; @@ -30,7 +31,7 @@ import java.util.Set; * 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"; @@ -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; } @@ -52,7 +53,7 @@ class AttributionDialogManager implements View.OnClickListener, DialogInterface. showAttributionDialog(); } - private void showAttributionDialog() { + protected void showAttributionDialog() { attributionTitles = getAttributionTitles(); AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setTitle(R.string.mapbox_attributionsDialogTitle); |