fix: Mappings

fix an issue where generating mappings showed snapchat not installed even though its installed
This commit is contained in:
ΞTΞRNAL
2026-01-17 20:08:52 +05:30
committed by GitHub
parent d3b7ddda40
commit 1ba7e411ca

View File

@@ -185,7 +185,8 @@ class MappingsScreen : SetupScreen() {
if (isGenerating) return@launch
isGenerating = true
runCatching {
if (context.installationSummary.snapchatInfo == null) {
context.mappings.init(context.androidContext)
if (context.mappings.getSnapchatPackageInfo() == null) {
throw Exception(context.translation["setup.mappings.generate_failure_no_snapchat"])
}
val warnings = context.mappings.refresh()