OSDN Git Service

Fix screen magnifier scaling due to ScaleGestureDetector changes.
authorSvetoslav <svetoslavganov@google.com>
Thu, 3 Oct 2013 00:52:51 +0000 (17:52 -0700)
committerSvetoslav <svetoslavganov@google.com>
Thu, 3 Oct 2013 00:53:00 +0000 (17:53 -0700)
commit1fdbaa100c00e7e93db6f96f8ff9327a0aad968c
tree8feae8e6caf147b195e5d227046870123e68dc94
parent9ca82d333cfeb7aa5218efbca95763c15dc440e9
Fix screen magnifier scaling due to ScaleGestureDetector changes.

The scale gesture detector has a new behavior to make onScale
callbacks during swipe after a double tap. The screen magnification
is triggered after a trippe tap so if the user trippe taps and
holds to do a temporary magnification and tries to change the
zoom level with another finger, erroneous results are obtained.

The ScaleGestureDetector uses an APIs level check for the new
behavior but the ScreenMagnifier is a platform feature. We now
explicitly ask for the old behavior.

bug:11033376

Change-Id: I0dfb14dd3abcaa34ad1f40447c631b4203797378
services/java/com/android/server/accessibility/ScreenMagnifier.java