From 8b6c7dd2fe1016a8f765f98e8114d5f491f02353 Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Tue, 11 Oct 2011 14:16:33 -0700 Subject: [PATCH] Add AccessibilityRecord#getMaxScrollX and #getMaxScrollY to the pubic API The methods were hidden for the previoud release since they were added too close to the SDK final date. bug:5424373 Change-Id: I812b9809223db75636b04549500f023820b6eb5a --- api/current.txt | 4 ++++ .../android/view/accessibility/AccessibilityRecord.java | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/api/current.txt b/api/current.txt index 92969f6ee99f6..662ebcd5b134f 100644 --- a/api/current.txt +++ b/api/current.txt @@ -24082,6 +24082,8 @@ package android.view.accessibility { method public int getCurrentItemIndex(); method public int getFromIndex(); method public int getItemCount(); + method public int getMaxScrollX(); + method public int getMaxScrollY(); method public android.os.Parcelable getParcelableData(); method public int getRemovedCount(); method public int getScrollX(); @@ -24108,6 +24110,8 @@ package android.view.accessibility { method public void setFromIndex(int); method public void setFullScreen(boolean); method public void setItemCount(int); + method public void setMaxScrollX(int); + method public void setMaxScrollY(int); method public void setParcelableData(android.os.Parcelable); method public void setPassword(boolean); method public void setRemovedCount(int); diff --git a/core/java/android/view/accessibility/AccessibilityRecord.java b/core/java/android/view/accessibility/AccessibilityRecord.java index fe06d983f0d27..a4e0688e22fab 100644 --- a/core/java/android/view/accessibility/AccessibilityRecord.java +++ b/core/java/android/view/accessibility/AccessibilityRecord.java @@ -391,8 +391,6 @@ public class AccessibilityRecord { * Gets the max scroll offset of the source left edge in pixels. * * @return The max scroll. - * - * @hide */ public int getMaxScrollX() { return mMaxScrollX; @@ -401,8 +399,6 @@ public class AccessibilityRecord { * Sets the max scroll offset of the source left edge in pixels. * * @param maxScrollX The max scroll. - * - * @hide */ public void setMaxScrollX(int maxScrollX) { enforceNotSealed(); @@ -413,8 +409,6 @@ public class AccessibilityRecord { * Gets the max scroll offset of the source top edge in pixels. * * @return The max scroll. - * - * @hide */ public int getMaxScrollY() { return mMaxScrollY; @@ -424,8 +418,6 @@ public class AccessibilityRecord { * Sets the max scroll offset of the source top edge in pixels. * * @param maxScrollY The max scroll. - * - * @hide */ public void setMaxScrollY(int maxScrollY) { enforceNotSealed();