[Bug]: Location Picker's "Current Location" FAB appears as a full white circle in Dark Mode and does not center the map on tap

Aperta
#7,482 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dkrrish9 ci sta già lavorando.

Dal 30/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Summary

On the Location Picker screen (opened via Add Location/Edit Location during upload), the Current Location (GPS) button has two issues:

  1. In Dark Mode, the button renders as a blank white circle with no visible icon (similar to #6267 and #6088).
  2. Tapping the button after panning away never moves the map back to our current GPS location.

(A small accessibility note: the GPS button also reuses the "Select location" content description from the checkmark button.)

Root cause:

  • bottom_container_location_picker.xml hardcodes app:backgroundTint="@color/white" on center_on_gps without app:tint, while ic_my_location_black_24dp.xml fills with ?attr/more_bottom_sheet_drawable_color (which resolves to @color/white in Dark Mode).
  • Tapping center_on_gps calls LocationPickerMapManager.addLocationMarker(geoPoint, moveToCurrentLocation = true) which clears and re-adds the GPS marker overlays but never calls moveMapTo(geoPoint) or mapView.invalidate().
Steps to reproduce

Tested with Dark Mode enabled, location permission granted and device GPS/location turned on.

  1. Open the app.
  2. Tap on the + floating action button.
  3. Select Gallery/Custom Selector to choose an image.
  4. Select any image without EXIF location data (or with EXIF location data).
  5. Wait for Step 1 of 4 of the upload flow to open.
  6. Tap on the Add Location option (if the image has EXIF location data then tap on the Edit Location option and then click on the Edit Location button).
  7. Observe that the Current Location (GPS) FAB above the green checkmark FAB appears as a blank white filled circle with no visible icon in Dark Mode.
  8. Pan the map away from your current GPS location and tap on that Current Location FAB.
  9. Observe that nothing happens and the map does not move back to your current location.
Expected behaviour
  • The GPS target icon inside the Current Location FAB should be clearly visible in both Light Mode and Dark Mode.
  • Tapping the Current Location FAB after panning away should center the map on our current GPS location.
Actual behaviour
  • In Dark Mode the Current Location FAB renders as a blank white circle.
  • Tapping the Current Location FAB does nothing, the map camera stays where it was panned and never moves to our current GPS location.
Device name

OnePlus Nord 5

Android version

Android 16 (API 36)

Commons app version

6.9.0-debug-main (BetaDebug)

Device logs

No response

Screenshots

Dark Mode blank white circle FAB (screenshot):

LocationPickerIssueImage

Image without EXIF location data (screen recording):

https://github.com/user-attachments/assets/df06f947-d768-4927-aa50-cd5b3d8d5f69

Image with EXIF location data (screen recording):

https://github.com/user-attachments/assets/996e093a-d391-41fe-9dcc-b42a0df579c1

Would you like to work on the issue?

Yes

Lingua principale
Kotlin
Stelle
1.2k
Fork
1.4k
Merge medio
1g 4h
PR unite (30g)
156

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di commons-app/apps-android-commons

Tutte le issue di commons-app/apps-android-commons

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.