fix: improve Android release check networking and restore loading screen logo

This commit is contained in:
2026-10-28 20:31:57 -07:00
parent 084d215b23
commit c7463364da

View File

@@ -411,6 +411,9 @@ async fn download_and_extract_payload(app: tauri::AppHandle, window: WebviewWind
.connect_timeout(std::time::Duration::from_secs(15))
.timeout(std::time::Duration::from_secs(180))
.redirect(reqwest::redirect::Policy::limited(10))
.local_address(std::net::IpAddr::V4(std::net::Ipv4Addr::UNSPECIFIED))
.http1_only()
.pool_max_idle_per_host(0)
.build()
.map_err(|e| format!("Client error: {}", e))?;
@@ -460,8 +463,14 @@ async fn download_and_extract_payload(app: tauri::AppHandle, window: WebviewWind
}
}
Err(e) => {
android_log(&format!("Release check failed for {}: {}", endpoint, e));
last_error = format!("{}", e);
let mut detail = format!("{}", e);
let mut src = StdError::source(&e);
while let Some(s) = src {
detail.push_str(&format!(" <- {}", s));
src = s.source();
}
android_log(&format!("Release check failed for {}: {}", endpoint, detail));
last_error = detail;
}
}