INNER CODE UNIT · Rust
eq
marc2332/freya · crates/freya-android/src/lib.rs:100
fn eq(&self, _other: &Self) -> bool {
true
}
}
impl Component for AndroidRoot {
fn render(&self) -> impl IntoElement {
let theme = use_init_theme(light_theme);
// Sync status bar appearance with theme
use_side_effect(move || {
let platform = Platform::get();
let is_light = theme.read().name == "light";
if let Err(err) = platform.set_status_bar_light(is_light) {
tracing::error!("Failed to set status bar appearance: {err:?}");
}
});