Make Vulkan a *not required* feature (#6961)

* Make Vulkan a *not required* feature

* Add `DeviceHasVulkanSupport` helper to check this on runtime

* When trying to open a screen with a map in it, check if vulkan is supported and display a new error dialog in that case

* Fix random lint issue

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
This commit is contained in:
Jorge Martin Espinosa
2026-06-04 15:08:19 +02:00
committed by GitHub
parent 27cdc0fe7d
commit a91e1fa2ae
9 changed files with 132 additions and 18 deletions
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2026 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
* Please see LICENSE files in the repository root for full details.
*/
package io.element.android.features.location.api
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import io.element.android.libraries.designsystem.components.dialogs.ErrorDialog
import io.element.android.libraries.designsystem.preview.ElementPreview
import io.element.android.libraries.designsystem.preview.PreviewsDayNight
import io.element.android.libraries.ui.strings.CommonStrings
@Composable
fun RenderingMapsNotSupportedDialog(onSubmit: () -> Unit) {
ErrorDialog(
title = stringResource(CommonStrings.vulkan_not_supported_dialog_title_android),
content = stringResource(CommonStrings.vulkan_not_supported_dialog_content_android),
onSubmit = onSubmit,
)
}
@PreviewsDayNight
@Composable
internal fun RenderingMapsNotSupportedDialogPreview() = ElementPreview {
RenderingMapsNotSupportedDialog(onSubmit = {})
}