From 0c35d1d852c053e3a5319d550e34dbd64f50b412 Mon Sep 17 00:00:00 2001 From: afohrman Date: Fri, 2 Dec 2022 15:37:48 -0500 Subject: [PATCH] [Adaptive] [Side Sheet] Made SheetDialog abstract base class and Sheet interface package-private. PiperOrigin-RevId: 492534084 (cherry picked from commit 0f9c6fcab81339e05abe489661c004a320904256) --- lib/java/com/google/android/material/sidesheet/Sheet.java | 3 +-- .../com/google/android/material/sidesheet/SheetDialog.java | 7 +------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/java/com/google/android/material/sidesheet/Sheet.java b/lib/java/com/google/android/material/sidesheet/Sheet.java index 889d3b59124..64faf3b4d81 100644 --- a/lib/java/com/google/android/material/sidesheet/Sheet.java +++ b/lib/java/com/google/android/material/sidesheet/Sheet.java @@ -27,8 +27,7 @@ * Interface for sheet constants and {@code IntDefs} to be shared between the different {@link * Sheet} implementations. */ -public interface Sheet { - +interface Sheet { /** The sheet is dragging. */ int STATE_DRAGGING = 1; diff --git a/lib/java/com/google/android/material/sidesheet/SheetDialog.java b/lib/java/com/google/android/material/sidesheet/SheetDialog.java index f00ddbc70cf..f0eaefe4edb 100644 --- a/lib/java/com/google/android/material/sidesheet/SheetDialog.java +++ b/lib/java/com/google/android/material/sidesheet/SheetDialog.java @@ -18,7 +18,6 @@ import com.google.android.material.R; -import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP; import android.content.Context; import android.content.res.TypedArray; @@ -37,7 +36,6 @@ import androidx.annotation.LayoutRes; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import androidx.annotation.RestrictTo; import androidx.annotation.StyleRes; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.core.view.AccessibilityDelegateCompat; @@ -48,11 +46,8 @@ /** * Base class for {@link android.app.Dialog}s styled as a sheet, to be used by sheet dialog * implementations such as side sheets and bottom sheets. - * - * @hide For internal use only. */ -@RestrictTo(LIBRARY_GROUP) -public abstract class SheetDialog extends AppCompatDialog { +abstract class SheetDialog extends AppCompatDialog { private static final int COORDINATOR_LAYOUT_ID = R.id.coordinator; private static final int TOUCH_OUTSIDE_ID = R.id.touch_outside;