mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 01:24:21 +01:00
dave: fix android build
This commit is contained in:
@@ -5,7 +5,7 @@ use egui_winit::winit::platform::android::activity::AndroidApp;
|
|||||||
use notedeck_columns::Damus;
|
use notedeck_columns::Damus;
|
||||||
use notedeck_dave::Dave;
|
use notedeck_dave::Dave;
|
||||||
|
|
||||||
use crate::{setup::setup_chrome, chrome::Chrome};
|
use crate::{chrome::Chrome, setup::setup_chrome};
|
||||||
use notedeck::Notedeck;
|
use notedeck::Notedeck;
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
@@ -43,7 +43,11 @@ pub async fn android_main(app: AndroidApp) {
|
|||||||
.init();
|
.init();
|
||||||
|
|
||||||
let path = app.internal_data_path().expect("data path");
|
let path = app.internal_data_path().expect("data path");
|
||||||
let mut options = eframe::NativeOptions::default();
|
let mut options = eframe::NativeOptions {
|
||||||
|
depth_buffer: 24,
|
||||||
|
..eframe::NativeOptions::default()
|
||||||
|
};
|
||||||
|
|
||||||
options.renderer = eframe::Renderer::Wgpu;
|
options.renderer = eframe::Renderer::Wgpu;
|
||||||
// Clone `app` to use it both in the closure and later in the function
|
// Clone `app` to use it both in the closure and later in the function
|
||||||
//let app_clone_for_event_loop = app.clone();
|
//let app_clone_for_event_loop = app.clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user