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

Commit a702ccdf authored by Yorke Lee's avatar Yorke Lee
Browse files

Add setOverlay method to QuickContactsBadge

Allow apps to disable/configure their own overlay to be used
on the QuickContactsBadge

Bug: 13747208

Change-Id: Id84c6ee1ebde6ce17477c12d22522ca19c27ea9b
parent 80c1210e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34512,6 +34512,7 @@ package android.widget {
    method public void setExcludeMimes(java.lang.String[]);
    method public void setImageToDefault();
    method public void setMode(int);
    method public void setOverlay(android.graphics.drawable.Drawable);
    field protected java.lang.String[] mExcludeMimes;
  }
+10 −0
Original line number Diff line number Diff line
@@ -256,6 +256,16 @@ public class QuickContactBadge extends ImageView implements OnClickListener {
        }
    }

    /**
     * Assigns the drawable that is to be drawn on top of the assigned contact photo.
     *
     * @param overlay Drawable to be drawn over the assigned contact photo. Must have a non-zero
     *         instrinsic width and height.
     */
    public void setOverlay(Drawable overlay) {
        mOverlay = overlay;
    }

    private void onContactUriChanged() {
        setEnabled(isAssigned());
    }