diff options
| author | Svetoslav Ganov <svetoslavganov@google.com> | 2012-12-10 18:29:24 -0800 |
|---|---|---|
| committer | Svetoslav Ganov <svetoslavganov@google.com> | 2012-12-14 16:27:27 -0800 |
| commit | 545252f4fde6fbb70b07e97a120c7d1405758017 (patch) | |
| tree | e3238e5262e77cd91751c2302c30d828c539c55c /core/java/android/view/MagnificationSpec.java | |
| parent | 224333c03f1a9e14fce09207dc15d06365bf917b (diff) | |
Refactoring of the screen magnification feature.
1. This patch takes care of the case where a magnified window is covering an unmagnigied
one. One example is a dialog that covers the IME window.
bug:7634430
2. Ensuring that the UI automator tool can connect and correctly dump the screen.
bug:7694696
3. Removed the partial implementation for multi display magnification. It adds
unnecessary complexity since it cannot be implemented without support for
input from multiple screens. We will revisit when necessary.
4. Moved the magnified border window as a surface in the window manager.
5. Moved the mediator APIs on the window manager and the policy methods on the
WindowManagerPolicy.
6. Implemented batch event processing for the accessibility input filter.
Change-Id: I4ebf68b94fb07201e124794f69611ece388ec116
Diffstat (limited to 'core/java/android/view/MagnificationSpec.java')
| -rw-r--r-- | core/java/android/view/MagnificationSpec.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/view/MagnificationSpec.java b/core/java/android/view/MagnificationSpec.java index 7fb56158da5e..0ee6714f7b5f 100644 --- a/core/java/android/view/MagnificationSpec.java +++ b/core/java/android/view/MagnificationSpec.java @@ -39,6 +39,9 @@ public class MagnificationSpec implements Parcelable { } public void initialize(float scale, float offsetX, float offsetY) { + if (scale < 1) { + throw new IllegalArgumentException("Scale must be greater than or equal to one!"); + } this.scale = scale; this.offsetX = offsetX; this.offsetY = offsetY; |
