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

Commit cac68c3f authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Deprecate Activity.setTitleColor()"

parents 47fef37d 2525d9c8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2938,7 +2938,7 @@ package android.app {
    method public final void setSecondaryProgress(int);
    method public void setTitle(java.lang.CharSequence);
    method public void setTitle(int);
    method public void setTitleColor(int);
    method public deprecated void setTitleColor(int);
    method public void setVisible(boolean);
    method public final void setVolumeControlStream(int);
    method public boolean shouldUpRecreateTask(android.content.Intent);
@@ -29320,7 +29320,7 @@ package android.view {
    method public void setLogo(int);
    method public void setSoftInputMode(int);
    method public abstract void setTitle(java.lang.CharSequence);
    method public abstract void setTitleColor(int);
    method public abstract deprecated void setTitleColor(int);
    method public void setType(int);
    method public void setUiOptions(int);
    method public void setUiOptions(int, int);
+11 −0
Original line number Diff line number Diff line
@@ -4598,6 +4598,17 @@ public class Activity extends ContextThemeWrapper
        setTitle(getText(titleId));
    }

    /**
     * Change the color of the title associated with this activity.
     * <p>
     * This method is deprecated starting in API Level 11 and replaced by action
     * bar styles. For information on styling the Action Bar, read the <a
     * href="{@docRoot} guide/topics/ui/actionbar.html">Action Bar</a> developer
     * guide.
     *
     * @deprecated Use action bar styles instead.
     */
    @Deprecated
    public void setTitleColor(int textColor) {
        mTitleColor = textColor;
        onTitleChanged(mTitle, textColor);
+1 −0
Original line number Diff line number Diff line
@@ -996,6 +996,7 @@ public abstract class Window {

    public abstract void setTitle(CharSequence title);

    @Deprecated
    public abstract void setTitleColor(int textColor);

    public abstract void openPanel(int featureId, KeyEvent event);
+1 −0
Original line number Diff line number Diff line
@@ -397,6 +397,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
    }

    @Override
    @Deprecated
    public void setTitleColor(int textColor) {
        if (mTitleView != null) {
            mTitleView.setTextColor(textColor);