Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3fb34ce authored by Aurimas Liutikas's avatar Aurimas Liutikas
Browse files

Deprecate ZoomControls.

In API 26 we deprecated ZoomButton and ZoomButtonsController, but
we missed ZoomControls that is used together with the former classes.

Test: None
Bug: 126610647
Change-Id: I0207551b2aaf511ad37ad759475916616fe9240b
parent 4ed935a5
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -57776,16 +57776,16 @@ package android.widget {
    method @Deprecated public void onZoom(boolean);
  }
  public class ZoomControls extends android.widget.LinearLayout {
    ctor public ZoomControls(android.content.Context);
    ctor public ZoomControls(android.content.Context, android.util.AttributeSet);
    method public void hide();
    method public void setIsZoomInEnabled(boolean);
    method public void setIsZoomOutEnabled(boolean);
    method public void setOnZoomInClickListener(android.view.View.OnClickListener);
    method public void setOnZoomOutClickListener(android.view.View.OnClickListener);
    method public void setZoomSpeed(long);
    method public void show();
  @Deprecated public class ZoomControls extends android.widget.LinearLayout {
    ctor @Deprecated public ZoomControls(android.content.Context);
    ctor @Deprecated public ZoomControls(android.content.Context, android.util.AttributeSet);
    method @Deprecated public void hide();
    method @Deprecated public void setIsZoomInEnabled(boolean);
    method @Deprecated public void setIsZoomOutEnabled(boolean);
    method @Deprecated public void setOnZoomInClickListener(android.view.View.OnClickListener);
    method @Deprecated public void setOnZoomOutClickListener(android.view.View.OnClickListener);
    method @Deprecated public void setZoomSpeed(long);
    method @Deprecated public void show();
  }
}
+5 −1
Original line number Diff line number Diff line
@@ -30,7 +30,11 @@ import com.android.internal.R;

/**
 * The {@code ZoomControls} class displays a simple set of controls used for zooming and
 * provides callbacks to register for events. */
 * provides callbacks to register for events.
 * @deprecated This functionality and UI is better handled with custom views and layouts
 * rather than a dedicated zoom-control widget
 */
@Deprecated
@Widget
public class ZoomControls extends LinearLayout {