File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ extern "system" fn new_view_peer<'local>(
7575 masonry_android:: new_view_peer (
7676 & mut env,
7777 & context,
78- make_widget_tree ( ) ,
78+ WidgetPod :: new ( make_widget_tree ( ) ) . erased ( ) ,
7979 Driver {
8080 next_task : String :: new ( ) ,
8181 } ,
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ pub struct MasonryState {
9999
100100impl MasonryState {
101101 pub fn new (
102- root_widget : impl Widget ,
102+ root_widget : WidgetPod < dyn Widget > ,
103103 default_properties : Arc < DefaultProperties > ,
104104 scale_factor : f64 ,
105105 ) -> Self {
@@ -109,7 +109,7 @@ impl MasonryState {
109109 Self {
110110 render_cx,
111111 render_root : RenderRoot :: new (
112- WidgetPod :: new ( root_widget) . erased ( ) ,
112+ root_widget,
113113 move |signal| {
114114 signal_sender. send ( signal) . unwrap ( ) ;
115115 } ,
@@ -594,7 +594,7 @@ impl<Driver: AppDriver> AccessibilityNodeProvider for MasonryViewPeer<Driver> {
594594pub fn new_view_peer < ' local > (
595595 env : & mut JNIEnv < ' local > ,
596596 android_ctx : & Context < ' local > ,
597- root_widget : impl Widget ,
597+ root_widget : WidgetPod < dyn Widget > ,
598598 mut app_driver : impl AppDriver + ' static ,
599599 default_properties : Arc < DefaultProperties > ,
600600) -> jlong {
You can’t perform that action at this time.
0 commit comments