From fd0a14eac26538355caa6fc85bc516519bf9f5e5 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 9 Feb 2024 18:55:12 -0800 Subject: [PATCH] initial fixes for android build Signed-off-by: William Casarin --- src/bin/notedeck.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/notedeck.rs b/src/bin/notedeck.rs index e768f7a..d38af99 100644 --- a/src/bin/notedeck.rs +++ b/src/bin/notedeck.rs @@ -35,7 +35,7 @@ pub fn main() { eframe::start_web( "the_canvas_id", // hardcode it web_options, - Box::new(|_cc| Box::new(Damus::new())), + Box::new(|cc| Box::new(Damus::new(cc))), ) .await .expect("failed to start eframe"); diff --git a/src/lib.rs b/src/lib.rs index b96d561..39a3fb1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,6 +43,6 @@ pub async fn android_main(app: AndroidApp) { let res_ = eframe::run_native( "Damus NoteDeck", options, - Box::new(|_cc| Box::new(Damus::new())), + Box::new(|cc| Box::new(Damus::new(cc))), ); }