|
17 | 17 | import android.content.res.Configuration;
|
18 | 18 | import android.graphics.Bitmap;
|
19 | 19 | import android.graphics.drawable.VectorDrawable;
|
| 20 | +import android.net.Uri; |
20 | 21 | import android.os.Bundle;
|
21 | 22 | import android.provider.Settings;
|
22 | 23 | import android.util.Log;
|
23 | 24 | import android.view.Gravity;
|
24 | 25 | import android.view.LayoutInflater;
|
25 | 26 | import android.view.View;
|
| 27 | +import android.view.View.OnClickListener; |
26 | 28 | import android.view.ViewGroup;
|
27 | 29 | import android.view.animation.Animation;
|
28 | 30 | import android.view.animation.AnimationUtils;
|
|
38 | 40 | import androidx.annotation.NonNull;
|
39 | 41 | import androidx.annotation.Nullable;
|
40 | 42 | import androidx.appcompat.app.AlertDialog;
|
| 43 | +import androidx.appcompat.widget.AppCompatTextView; |
41 | 44 | import androidx.fragment.app.Fragment;
|
42 | 45 | import androidx.recyclerview.widget.DividerItemDecoration;
|
43 | 46 | import androidx.recyclerview.widget.LinearLayoutManager;
|
@@ -154,6 +157,8 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
154 | 157 | @BindView(R.id.rv_nearby_list)
|
155 | 158 | RecyclerView rvNearbyList;
|
156 | 159 | @BindView(R.id.no_results_message) TextView noResultsView;
|
| 160 | + @BindView(R.id.tv_attribution) |
| 161 | + AppCompatTextView tvOpenStreetAttribution; |
157 | 162 |
|
158 | 163 | @Inject LocationServiceManager locationManager;
|
159 | 164 | @Inject NearbyController nearbyController;
|
@@ -259,6 +264,11 @@ public void onViewCreated(@NonNull final View view, @Nullable final Bundle saved
|
259 | 264 | scaleBarPlugin.create(scaleBarOptions);
|
260 | 265 | });
|
261 | 266 | });
|
| 267 | + tvOpenStreetAttribution.setOnClickListener(v -> { |
| 268 | + Intent intent = new Intent(Intent.ACTION_VIEW); |
| 269 | + intent.setData(Uri.parse("https://www.openstreetmap.org/copyright")); |
| 270 | + startActivity(intent); |
| 271 | + }); |
262 | 272 | }
|
263 | 273 |
|
264 | 274 | /**
|
|
0 commit comments