diff --git a/apps/parent/src/test/java/com/instructure/parentapp/util/FlutterAppMigrationTest.kt b/apps/parent/src/test/java/com/instructure/parentapp/util/FlutterAppMigrationTest.kt index 3dde81cb7a..4242335f9a 100644 --- a/apps/parent/src/test/java/com/instructure/parentapp/util/FlutterAppMigrationTest.kt +++ b/apps/parent/src/test/java/com/instructure/parentapp/util/FlutterAppMigrationTest.kt @@ -107,6 +107,7 @@ class FlutterAppMigrationTest { ) } returns mockDatabase every { Uri.parse(any()) } returns mockUri + every { parentPrefs.hasMigrated } returns false } @After diff --git a/libs/pandares/src/main/res/values/strings.xml b/libs/pandares/src/main/res/values/strings.xml index 7e752646c5..3404032ced 100644 --- a/libs/pandares/src/main/res/values/strings.xml +++ b/libs/pandares/src/main/res/values/strings.xml @@ -1966,5 +1966,6 @@ Assignments (%d) Pages (%d) Comment sent successfully + Open profile Conversations diff --git a/libs/pandautils/src/main/java/com/instructure/pandautils/binding/BindingAdapters.kt b/libs/pandautils/src/main/java/com/instructure/pandautils/binding/BindingAdapters.kt index 06d7176ed1..64a1203abe 100644 --- a/libs/pandautils/src/main/java/com/instructure/pandautils/binding/BindingAdapters.kt +++ b/libs/pandautils/src/main/java/com/instructure/pandautils/binding/BindingAdapters.kt @@ -282,6 +282,24 @@ fun bindUserAvatar(imageView: ImageView, avatar: AvatarViewData) { imageView.importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_YES imageView.contentDescription = imageView.context.getString(R.string.a11y_avatarContentDescription) ProfileUtils.loadAvatarForUser(imageView, avatar.firstUserName, avatar.avatarUrl) + imageView.accessibilityDelegate = object : View.AccessibilityDelegate() { + override fun onInitializeAccessibilityNodeInfo( + host: View, + info: AccessibilityNodeInfo + ) { + super.onInitializeAccessibilityNodeInfo(host, info) + info.contentDescription = imageView.context.getString( + R.string.a11y_avatarContentDescription, + avatar.firstUserName + ) + info.addAction( + AccessibilityNodeInfo.AccessibilityAction( + AccessibilityNodeInfo.ACTION_CLICK, + imageView.context.getString(R.string.a11y_avatarActionDescription) + ) + ) + } + } } }