Skip to content

Commit a8cae1f

Browse files
committed
Use androidx.compose.ui.window.DialogWindowProvider to find appropriate window for InputMethodManager
1 parent 595f6e8 commit a8cae1f

File tree

1 file changed

+1
-9
lines changed
  • bottomsheetdialog-compose/src/main/kotlin/com/holix/android/bottomsheetdialog/compose

1 file changed

+1
-9
lines changed

bottomsheetdialog-compose/src/main/kotlin/com/holix/android/bottomsheetdialog/compose/BottomSheetDialog.kt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import androidx.compose.ui.semantics.semantics
2929
import androidx.compose.ui.unit.Density
3030
import androidx.compose.ui.unit.LayoutDirection
3131
import androidx.compose.ui.unit.dp
32+
import androidx.compose.ui.window.DialogWindowProvider
3233
import androidx.compose.ui.window.SecureFlagPolicy
3334
import androidx.core.view.WindowCompat
3435
import androidx.lifecycle.ViewTreeLifecycleOwner
@@ -309,15 +310,6 @@ fun BottomSheetDialog(
309310
}
310311
}
311312

312-
/**
313-
* Provides the underlying window of a bottomsheet dialog.
314-
*
315-
* Implemented by dialog's root layout.
316-
*/
317-
interface DialogWindowProvider {
318-
val window: Window
319-
}
320-
321313
@Suppress("ViewConstructor")
322314
private class BottomSheetDialogLayout(
323315
context: Context,

0 commit comments

Comments
 (0)