[a11y] Make more items focusable (#4605)

* Fix settings entry point not available when there is no avatar on the account. Fixes #4599.

* Use Ktx extension `String.toUri()`

* Allow screen reader to focus on the user avatar to allow editing it.

* Fix import order
This commit is contained in:
Benoit Marty 2025-04-22 08:50:50 +02:00 committed by GitHub
parent cb926ee9c5
commit bacfa09916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 48 additions and 24 deletions

View file

@ -7,6 +7,7 @@
package io.element.android.libraries.push.impl.notifications.model
import android.net.Uri
import androidx.core.net.toUri
import io.element.android.libraries.matrix.api.core.EventId
import io.element.android.libraries.matrix.api.core.RoomId
import io.element.android.libraries.matrix.api.core.SessionId
@ -52,7 +53,7 @@ data class NotifiableMessageEvent(
// Example of value:
// content://io.element.android.x.debug.notifications.fileprovider/downloads/temp/notif/matrix.org/XGItzSDOnSyXjYtOPfiKexDJ
val imageUri: Uri?
get() = imageUriString?.let { Uri.parse(it) }
get() = imageUriString?.toUri()
}
/**