Return correct unfocused month date color for pre-Material themes.

Also deprecate setter / getter for showWeekNumber field.

Bug: 28022795
Change-Id: Ie0c33353f76c2a3d9666959a07f6809b7b85183f
This commit is contained in:
Kirill Grouchnikov
2016-04-05 17:25:41 -04:00
parent bbcf4327d2
commit 7cf1586ce4
5 changed files with 17 additions and 13 deletions

View File

@@ -20328,8 +20328,8 @@ package android.media {
public class MediaActionSound {
ctor public MediaActionSound();
method public synchronized void load(int);
method public synchronized void play(int);
method public void load(int);
method public void play(int);
method public void release();
field public static final int FOCUS_COMPLETE = 1; // 0x1
field public static final int SHUTTER_CLICK = 0; // 0x0
@@ -46266,7 +46266,7 @@ package android.widget {
method public long getMinDate();
method public deprecated android.graphics.drawable.Drawable getSelectedDateVerticalBar();
method public deprecated int getSelectedWeekBackgroundColor();
method public boolean getShowWeekNumber();
method public deprecated boolean getShowWeekNumber();
method public deprecated int getShownWeekCount();
method public deprecated int getUnfocusedMonthDateColor();
method public int getWeekDayTextAppearance();
@@ -46283,7 +46283,7 @@ package android.widget {
method public deprecated void setSelectedDateVerticalBar(int);
method public deprecated void setSelectedDateVerticalBar(android.graphics.drawable.Drawable);
method public deprecated void setSelectedWeekBackgroundColor(int);
method public void setShowWeekNumber(boolean);
method public deprecated void setShowWeekNumber(boolean);
method public deprecated void setShownWeekCount(int);
method public deprecated void setUnfocusedMonthDateColor(int);
method public void setWeekDayTextAppearance(int);

View File

@@ -21807,8 +21807,8 @@ package android.media {
public class MediaActionSound {
ctor public MediaActionSound();
method public synchronized void load(int);
method public synchronized void play(int);
method public void load(int);
method public void play(int);
method public void release();
field public static final int FOCUS_COMPLETE = 1; // 0x1
field public static final int SHUTTER_CLICK = 0; // 0x0
@@ -49363,7 +49363,7 @@ package android.widget {
method public long getMinDate();
method public deprecated android.graphics.drawable.Drawable getSelectedDateVerticalBar();
method public deprecated int getSelectedWeekBackgroundColor();
method public boolean getShowWeekNumber();
method public deprecated boolean getShowWeekNumber();
method public deprecated int getShownWeekCount();
method public deprecated int getUnfocusedMonthDateColor();
method public int getWeekDayTextAppearance();
@@ -49380,7 +49380,7 @@ package android.widget {
method public deprecated void setSelectedDateVerticalBar(int);
method public deprecated void setSelectedDateVerticalBar(android.graphics.drawable.Drawable);
method public deprecated void setSelectedWeekBackgroundColor(int);
method public void setShowWeekNumber(boolean);
method public deprecated void setShowWeekNumber(boolean);
method public deprecated void setShownWeekCount(int);
method public deprecated void setUnfocusedMonthDateColor(int);
method public void setWeekDayTextAppearance(int);

View File

@@ -20393,8 +20393,8 @@ package android.media {
public class MediaActionSound {
ctor public MediaActionSound();
method public synchronized void load(int);
method public synchronized void play(int);
method public void load(int);
method public void play(int);
method public void release();
field public static final int FOCUS_COMPLETE = 1; // 0x1
field public static final int SHUTTER_CLICK = 0; // 0x0
@@ -46340,7 +46340,7 @@ package android.widget {
method public long getMinDate();
method public deprecated android.graphics.drawable.Drawable getSelectedDateVerticalBar();
method public deprecated int getSelectedWeekBackgroundColor();
method public boolean getShowWeekNumber();
method public deprecated boolean getShowWeekNumber();
method public deprecated int getShownWeekCount();
method public deprecated int getUnfocusedMonthDateColor();
method public int getWeekDayTextAppearance();
@@ -46357,7 +46357,7 @@ package android.widget {
method public deprecated void setSelectedDateVerticalBar(int);
method public deprecated void setSelectedDateVerticalBar(android.graphics.drawable.Drawable);
method public deprecated void setSelectedWeekBackgroundColor(int);
method public void setShowWeekNumber(boolean);
method public deprecated void setShowWeekNumber(boolean);
method public deprecated void setShownWeekCount(int);
method public deprecated void setUnfocusedMonthDateColor(int);
method public void setWeekDayTextAppearance(int);

View File

@@ -430,9 +430,11 @@ public class CalendarView extends FrameLayout {
* Sets whether to show the week number.
*
* @param showWeekNumber True to show the week number.
* @deprecated No longer used by Material-style CalendarView.
*
* @attr ref android.R.styleable#CalendarView_showWeekNumber
*/
@Deprecated
public void setShowWeekNumber(boolean showWeekNumber) {
mDelegate.setShowWeekNumber(showWeekNumber);
}
@@ -441,9 +443,11 @@ public class CalendarView extends FrameLayout {
* Gets whether to show the week number.
*
* @return True if showing the week number.
* @deprecated No longer used by Material-style CalendarView.
*
* @attr ref android.R.styleable#CalendarView_showWeekNumber
*/
@Deprecated
public boolean getShowWeekNumber() {
return mDelegate.getShowWeekNumber();
}

View File

@@ -404,7 +404,7 @@ class CalendarViewLegacyDelegate extends CalendarView.AbstractCalendarViewDelega
@Override
public int getUnfocusedMonthDateColor() {
return mFocusedMonthDateColor;
return mUnfocusedMonthDateColor;
}
@Override