commit 245a929b5fb56bdf977c343e9be7772306ecb820 Author: William Casarin Date: Mon Jul 15 12:39:55 2024 -0700 test timelines for android tablets Signed-off-by: William Casarin diff --git a/src/app.rs b/src/app.rs index ded727c841fe..5d6666746204 100644 --- a/src/app.rs +++ b/src/app.rs @@ -640,6 +640,7 @@ fn render_damus(damus: &mut Damus, ctx: &Context) { puffin_egui::profiler_window(ctx); } +#[derive(Default)] struct Args { timelines: Vec, relays: Vec, @@ -769,8 +770,23 @@ impl Damus { args: Vec, ) -> Self { // arg parsing - let parsed_args = parse_args(&args); - let is_mobile = parsed_args.is_mobile.unwrap_or(ui::is_compiled_as_mobile()); + //let parsed_args = parse_args(&args); + let parsed_args = Args { + timelines: vec![ + Timeline::new( + serde_json::from_str(&include_str!("../queries/timeline.json")).unwrap(), + ), + Timeline::new( + serde_json::from_str(&include_str!("../queries/notifications.json")).unwrap(), + ), + Timeline::new( + serde_json::from_str(&include_str!("../queries/damus-notifs.json")).unwrap(), + ), + ], + ..Args::default() + }; + + let is_mobile = parsed_args.is_mobile.unwrap_or(false); setup_cc(cc, is_mobile, parsed_args.light);