Merge "[Magnifier-62] Deprecate constructor"
This commit is contained in:
@@ -53349,7 +53349,7 @@ package android.widget {
|
||||
}
|
||||
|
||||
public final class Magnifier {
|
||||
ctor public Magnifier(android.view.View);
|
||||
ctor public deprecated Magnifier(android.view.View);
|
||||
method public void dismiss();
|
||||
method public float getCornerRadius();
|
||||
method public int getDefaultHorizontalSourceToMagnifierOffset();
|
||||
|
||||
@@ -388,7 +388,8 @@ public class Editor {
|
||||
com.android.internal.R.bool.config_enableHapticTextHandle);
|
||||
|
||||
if (FLAG_USE_MAGNIFIER) {
|
||||
mMagnifierAnimator = new MagnifierMotionAnimator(new Magnifier(mTextView));
|
||||
final Magnifier magnifier = new Magnifier.Builder(mTextView).build();
|
||||
mMagnifierAnimator = new MagnifierMotionAnimator(magnifier);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -119,8 +119,9 @@ public final class Magnifier {
|
||||
*
|
||||
* @param view the view for which this magnifier is attached
|
||||
*
|
||||
* @see Builder
|
||||
* @deprecated Please use {@link Builder} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public Magnifier(@NonNull View view) {
|
||||
this(new Builder(view));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user