Add back handler to customize icon picker

This commit is contained in:
MM20 2023-03-14 18:00:09 +01:00
parent 5f31ded8c3
commit 2af64000de
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -2,6 +2,7 @@ package de.mm20.launcher2.ui.launcher.sheets
import android.content.pm.PackageManager
import android.graphics.drawable.InsetDrawable
import androidx.activity.compose.BackHandler
import androidx.appcompat.content.res.AppCompatResources
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
@ -68,6 +69,12 @@ fun CustomizeSearchableSheet(
val pickIcon by viewModel.isIconPickerOpen
if (pickIcon) {
BackHandler {
viewModel.closeIconPicker()
}
}
BottomSheetDialog(
onDismissRequest = onDismiss,
title = {