Add back handler to customize icon picker
This commit is contained in:
parent
5f31ded8c3
commit
2af64000de
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user