diff options
| author | Mihai Popa <popam@google.com> | 2018-01-26 15:09:48 +0000 |
|---|---|---|
| committer | Mihai Popa <popam@google.com> | 2018-01-30 14:29:44 +0000 |
| commit | 10d69ea7d38d712bb064fabaa257875c0a02fce9 (patch) | |
| tree | 524d48b874289cd6d92c31fbd16b223bd2cb7342 /core/java/android/widget/Magnifier.java | |
| parent | cbd5a384d7697f1e818f6a0f00b03b2395f501e5 (diff) | |
[Magnifier - 18] Make #update() public
The CL adds the Magnifier#update() method in the public API. The method
is used to refresh the content of the magnifier, whenever this is
desired (usually when there is a chance that the magnifier content
became stale).
The initial plan was that this method would not be included in the
public API. This was relying on a feature request we made to the
graphics team, asking for support to have a callback called whenever the
surface the magnifier is attached to changes. This way, we could
refresh the magnifier content whenever the surface changes, without
requiring the user to call #update(). Once the feature request is
implemented (probably in Q according to the last discussion), we will be
able to deprecate #update().
Bug: 63531115
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I62c5794c3227e6a5d36d351c10d6bcf18e1d931a
Diffstat (limited to 'core/java/android/widget/Magnifier.java')
| -rw-r--r-- | core/java/android/widget/Magnifier.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/java/android/widget/Magnifier.java b/core/java/android/widget/Magnifier.java index e42217f710c4..7a4c800ba15e 100644 --- a/core/java/android/widget/Magnifier.java +++ b/core/java/android/widget/Magnifier.java @@ -182,8 +182,6 @@ public final class Magnifier { /** * Forces the magnifier to update its content. It uses the previous coordinates passed to * {@link #show(float, float)}. This only happens if the magnifier is currently showing. - * - * @hide */ public void update() { if (mWindow.isShowing()) { |
