summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/View.java
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2012-07-16 08:46:07 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2012-07-16 08:46:11 -0700
commitc9c9a48e7bafae63cb35a9aa69255e80aba83988 (patch)
tree80295bae9e6546d9d7fb604af0fa772ebd18a4fc /core/java/android/view/View.java
parentdd0d0ba654cea3051e44ba9ae20ac4b269e123c0 (diff)
downloadframeworks_base-c9c9a48e7bafae63cb35a9aa69255e80aba83988.zip
frameworks_base-c9c9a48e7bafae63cb35a9aa69255e80aba83988.tar.gz
frameworks_base-c9c9a48e7bafae63cb35a9aa69255e80aba83988.tar.bz2
Removing a workaround for incorrect window position on window move.
1. The window manager was not notifying a window when the latter has been moved. This was causing incorrect coordinates of the nodes reported to accessibility services. To workaround that we have carried the correct window location when making a call from the accessibility layer into a window. Now the window manager notifies the window when it is moved and the workaround is no longer needed. This change takes it out. 2. The left and right in the attach info were not updated properly after a report that the window has moved. 3. The accessibility manager service was calling directly methods on the window manager service without going through the interface of the latter. This leads to unnecessary coupling and in the long rung increases system complexity and reduces maintability. bug:6623031 Change-Id: Iacb734b1bf337a47fad02c827ece45bb2f53a79d
Diffstat (limited to 'core/java/android/view/View.java')
-rw-r--r--core/java/android/view/View.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 3f017b4..b1500eb 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -4761,30 +4761,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
/**
- * Returns the delta between the actual and last reported window left.
- *
- * @hide
- */
- public int getActualAndReportedWindowLeftDelta() {
-// if (mAttachInfo != null) {
-// return mAttachInfo.mActualWindowLeft - mAttachInfo.mWindowLeft;
-// }
- return 0;
- }
-
- /**
- * Returns the delta between the actual and last reported window top.
- *
- * @hide
- */
- public int getActualAndReportedWindowTopDelta() {
-// if (mAttachInfo != null) {
-// return mAttachInfo.mActualWindowTop - mAttachInfo.mWindowTop;
-// }
- return 0;
- }
-
- /**
* Computes whether this view is visible to the user. Such a view is
* attached, visible, all its predecessors are visible, it is not clipped
* entirely by its predecessors, and has an alpha greater than zero.
@@ -17142,20 +17118,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
int mWindowTop;
/**
- * Left actual position of this view's window.
- *
- * TODO: This is a workaround for 6623031. Remove when fixed.
- */
- int mActualWindowLeft;
-
- /**
- * Actual top position of this view's window.
- *
- * TODO: This is a workaround for 6623031. Remove when fixed.
- */
- int mActualWindowTop;
-
- /**
* Indicates whether views need to use 32-bit drawing caches
*/
boolean mUse32BitDrawingCache;