initial fixes for android build
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -35,7 +35,7 @@ pub fn main() {
|
|||||||
eframe::start_web(
|
eframe::start_web(
|
||||||
"the_canvas_id", // hardcode it
|
"the_canvas_id", // hardcode it
|
||||||
web_options,
|
web_options,
|
||||||
Box::new(|_cc| Box::new(Damus::new())),
|
Box::new(|cc| Box::new(Damus::new(cc))),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.expect("failed to start eframe");
|
.expect("failed to start eframe");
|
||||||
|
|||||||
@@ -43,6 +43,6 @@ pub async fn android_main(app: AndroidApp) {
|
|||||||
let res_ = eframe::run_native(
|
let res_ = eframe::run_native(
|
||||||
"Damus NoteDeck",
|
"Damus NoteDeck",
|
||||||
options,
|
options,
|
||||||
Box::new(|_cc| Box::new(Damus::new())),
|
Box::new(|cc| Box::new(Damus::new(cc))),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user