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

Commit 2e9c300b authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Add setOverlay method to QuickContactsBadge"

parents 7c12112d a702ccdf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34530,6 +34530,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());
    }