diff --git a/api/current.txt b/api/current.txt index e4cc11a16bc65..b5fb23a33b36b 100644 --- a/api/current.txt +++ b/api/current.txt @@ -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 @@ -46274,7 +46274,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(); @@ -46291,7 +46291,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); diff --git a/api/system-current.txt b/api/system-current.txt index f63d2ac2d5893..b939a66beedef 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -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 @@ -49371,7 +49371,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(); @@ -49388,7 +49388,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); diff --git a/api/test-current.txt b/api/test-current.txt index d495d9f694ac1..ddf787bfa2503 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -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 @@ -46348,7 +46348,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(); @@ -46365,7 +46365,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); diff --git a/core/java/android/widget/CalendarView.java b/core/java/android/widget/CalendarView.java index cde7604b7e7cb..66896ab70e454 100644 --- a/core/java/android/widget/CalendarView.java +++ b/core/java/android/widget/CalendarView.java @@ -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(); } diff --git a/core/java/android/widget/CalendarViewLegacyDelegate.java b/core/java/android/widget/CalendarViewLegacyDelegate.java index 442fb334c4f60..f540479ad6418 100644 --- a/core/java/android/widget/CalendarViewLegacyDelegate.java +++ b/core/java/android/widget/CalendarViewLegacyDelegate.java @@ -404,7 +404,7 @@ class CalendarViewLegacyDelegate extends CalendarView.AbstractCalendarViewDelega @Override public int getUnfocusedMonthDateColor() { - return mFocusedMonthDateColor; + return mUnfocusedMonthDateColor; } @Override