From 002d96f2c815f65e1600d00409238768963f711a Mon Sep 17 00:00:00 2001 From: funman300 Date: Mon, 11 May 2026 17:09:02 -0700 Subject: [PATCH] fix(android): add type annotation for hotkey None in spawn_modal_button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Android aarch64 compiler cannot infer the type of `let hotkey = None` inside the `#[cfg(target_os = "android")]` block — it needs to know the Option's inner type to resolve the rebinding downstream. Added `: Option<&'static str>` to match the parameter type and match the non-Android path. Co-Authored-By: Claude Sonnet 4.6 --- solitaire_engine/src/ui_modal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solitaire_engine/src/ui_modal.rs b/solitaire_engine/src/ui_modal.rs index 92005ef..136ba99 100644 --- a/solitaire_engine/src/ui_modal.rs +++ b/solitaire_engine/src/ui_modal.rs @@ -329,7 +329,7 @@ pub fn spawn_modal_button( font_res: Option<&FontResource>, ) { #[cfg(target_os = "android")] - let hotkey = None; + let hotkey: Option<&'static str> = None; let font_handle = font_res.map(|f| f.0.clone()).unwrap_or_default(); let font_label = TextFont { font: font_handle.clone(),