From 589d9fcb61eec6242682ddec436b2e2a8064c76a Mon Sep 17 00:00:00 2001 From: Ray Ryan Date: Tue, 9 Apr 2024 13:43:19 -0700 Subject: [PATCH] Makes `CoveredByModal` public. Held off on this originally because we didn't have a use case. Now we do -- trying to keep a non-workflow system that does its own window management well behaved. --- workflow-ui/core-android/api/core-android.api | 6 ++++++ .../com/squareup/workflow1/ui/navigation/CoveredByModal.kt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/workflow-ui/core-android/api/core-android.api b/workflow-ui/core-android/api/core-android.api index d23069648..6e41bf3aa 100644 --- a/workflow-ui/core-android/api/core-android.api +++ b/workflow-ui/core-android/api/core-android.api @@ -260,6 +260,12 @@ public final class com/squareup/workflow1/ui/navigation/BackStackContainer$Saved public synthetic fun newArray (I)[Ljava/lang/Object; } +public final class com/squareup/workflow1/ui/navigation/CoveredByModal : com/squareup/workflow1/ui/ViewEnvironmentKey { + public static final field INSTANCE Lcom/squareup/workflow1/ui/navigation/CoveredByModal; + public fun getDefault ()Ljava/lang/Boolean; + public synthetic fun getDefault ()Ljava/lang/Object; +} + public final class com/squareup/workflow1/ui/navigation/LayeredDialogSessions { public static final field Companion Lcom/squareup/workflow1/ui/navigation/LayeredDialogSessions$Companion; public synthetic fun (Landroid/content/Context;Lkotlinx/coroutines/flow/StateFlow;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/internal/DefaultConstructorMarker;)V diff --git a/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/navigation/CoveredByModal.kt b/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/navigation/CoveredByModal.kt index c9bfbd42f..8f36d42ac 100644 --- a/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/navigation/CoveredByModal.kt +++ b/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/navigation/CoveredByModal.kt @@ -12,6 +12,6 @@ import com.squareup.workflow1.ui.WorkflowUiExperimentalApi * https://stackoverflow.com/questions/2886407/dealing-with-rapid-tapping-on-buttons */ @WorkflowUiExperimentalApi -internal object CoveredByModal : ViewEnvironmentKey() { +public object CoveredByModal : ViewEnvironmentKey() { override val default: Boolean = false }