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

Commit 6ad72f66 authored by Android Dialer's avatar Android Dialer Committed by Copybara-Service
Browse files

Updating PhotoInfo and GlidePhotoManager to support conference calls.

Bug: 76205353
Test: GlidePhotoManagerImplTest
PiperOrigin-RevId: 198872893
Change-Id: I7957078a63af2455e439286b8d2ef719d4c9ff4e
parent f8564463
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ public class GlidePhotoManagerImpl implements GlidePhotoManager {
            photoInfo.getIsSpam(),
            photoInfo.getIsBusiness(),
            TelecomManager.PRESENTATION_ALLOWED, // TODO(twyen):implement
            false)); // TODO(twyen):implement
            photoInfo.getIsConference()));
    return letterTileDrawable;
  }

+4 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ package com.android.dialer.glidephotomanager;

// Contains information associated with a number, which is used to create the
// photo.
// Next ID: 12
// Next ID: 13
message PhotoInfo {
  // The display name of the number.
  optional string name = 1;
@@ -44,4 +44,7 @@ message PhotoInfo {

  // Whether the photo should be badged as RTT call.
  optional bool is_rtt = 11;

  // Whether to show conference call icon instead of contact icon.
  optional bool is_conference = 12;
}
+2 −1
Original line number Diff line number Diff line
@@ -318,7 +318,8 @@ public class ContactGridManager {
        PhotoInfo.newBuilder()
            .setIsBusiness(primaryInfo.photoType() == ContactPhotoType.BUSINESS)
            .setIsVoicemail(primaryCallState.isVoiceMailNumber())
            .setIsSpam(primaryInfo.isSpam());
            .setIsSpam(primaryInfo.isSpam())
            .setIsConference(primaryCallState.isConference());

    // Contact has a name, that is a number.
    if (primaryInfo.nameIsNumber() && primaryInfo.number() != null) {