Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc1cb454 authored by Wenyi Wang's avatar Wenyi Wang Committed by android-build-merger
Browse files

Merge "Fix for Talkback announcement of local contact photo in photo picker"...

Merge "Fix for Talkback announcement of local contact photo in photo picker" into ub-contactsdialer-a-dev
am: 71149ba5

* commit '71149ba5':
  Fix for Talkback announcement of local contact photo in photo picker
parents 5088a461 71149ba5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ public class CompactPhotoSelectionFragment extends Fragment {
        public int titleRes;
        public int iconRes;
        public String syncAdapterPackageName;
        // Account type and user name of a photo

        public String accountType;
        public String accountName;

@@ -255,7 +255,7 @@ public class CompactPhotoSelectionFragment extends Fragment {
            final String contentDescription = getString(photo.primary ?
                    R.string.photo_view_description_checked :
                    R.string.photo_view_description_not_checked,
                    photo.accountType, photo.accountName);
                    photo.accountType, photo.accountName == null ? "" : photo.accountName);
            photoItemView.setContentDescription(contentDescription);

            return photoItemView;
@@ -347,7 +347,7 @@ public class CompactPhotoSelectionFragment extends Fragment {
        final ViewGroup clickedView = (ViewGroup) mGridView.getChildAt(position);
        final String contentDescription = getString(
                R.string.photo_view_description_checked,
                photo.accountType, photo.accountName);
                photo.accountType, photo.accountName == null ? "" : photo.accountName);
        clickedView.announceForAccessibility(contentDescription);
    }