diff --git a/app/src/main/java/fr/free/nrw/commons/contributions/MainActivity.java b/app/src/main/java/fr/free/nrw/commons/contributions/MainActivity.java index 9606abee4..a42897978 100644 --- a/app/src/main/java/fr/free/nrw/commons/contributions/MainActivity.java +++ b/app/src/main/java/fr/free/nrw/commons/contributions/MainActivity.java @@ -127,7 +127,8 @@ public class MainActivity extends NavigationBaseActivity implements FragmentMana tabLayout.getTabAt(1).setCustomView(nearbyTabLinearLayout); nearbyInfo.setOnClickListener(view -> - new AlertDialog.Builder(MainActivity.this).setTitle(R.string.title_activity_nearby).setMessage(R.string.showcase_view_whole_nearby_activity) + new AlertDialog.Builder(MainActivity.this).setTitle(R.string.title_activity_nearby) + .setView(getLayoutInflater().inflate(R.layout.dialog_nearby, null)) .setCancelable(true) .setPositiveButton(android.R.string.ok, (dialog, id) -> dialog.cancel()) .create() diff --git a/app/src/main/res/layout/dialog_nearby.xml b/app/src/main/res/layout/dialog_nearby.xml new file mode 100644 index 000000000..46a35d477 --- /dev/null +++ b/app/src/main/res/layout/dialog_nearby.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ceb3986d1..2631e5d44 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -331,6 +331,9 @@ Retry Got it! These are the places near you that need pictures to illustrate their Wikipedia articles.\n\nClicking on \'SEARCH THIS AREA\' locks the map and launches a nearby search around that location. + This place needs a photo. + This place already has a photo. + This place no longer exists. Tapping this button brings up a list of these places You can upload a picture for any place from your gallery or camera