@@ -145,7 +145,7 @@ private static void LogWarning(string message)
145145 { Keycode . AltRight , KeyCode . RightAlt } ,
146146 } ;
147147
148- private SurfaceView ? surfaceView ;
148+ private SurfaceView surfaceView ;
149149 private DateTime lastTime ;
150150 private float fixedTimer = 0.0f ;
151151
@@ -177,7 +177,7 @@ public void DoFrame(long frameTimeNanos)
177177
178178 class TouchCallback : Java . Lang . Object , View . IOnTouchListener
179179 {
180- public bool OnTouch ( View ? v , MotionEvent ? e )
180+ public bool OnTouch ( View v , MotionEvent e )
181181 {
182182 for ( var i = 0 ; i < e . PointerCount ; i ++ )
183183 {
@@ -207,7 +207,7 @@ public bool OnTouch(View? v, MotionEvent? e)
207207
208208 class KeyCallback : Java . Lang . Object , View . IOnKeyListener
209209 {
210- public bool OnKey ( View ? v , [ GeneratedEnum ] Keycode keyCode , KeyEvent ? e )
210+ public bool OnKey ( View v , [ GeneratedEnum ] Keycode keyCode , KeyEvent e )
211211 {
212212 AppEventModifierKeys Modifiers ( )
213213 {
@@ -293,9 +293,9 @@ AppEventModifierKeys Modifiers()
293293 }
294294 }
295295
296- private FrameCallback ? frameCallback ;
297- private TouchCallback ? touchCallback ;
298- private KeyCallback ? keyCallback ;
296+ private FrameCallback frameCallback ;
297+ private TouchCallback touchCallback ;
298+ private KeyCallback keyCallback ;
299299
300300 private void InitIfNeeded ( )
301301 {
@@ -602,7 +602,7 @@ public override void OnWindowFocusChanged(bool hasFocus)
602602 }
603603 }
604604
605- protected override void OnCreate ( Bundle ? savedInstanceState )
605+ protected override void OnCreate ( Bundle savedInstanceState )
606606 {
607607 base . OnCreate ( savedInstanceState ) ;
608608
@@ -690,8 +690,11 @@ protected override void OnCreate(Bundle? savedInstanceState)
690690 throw new Exception ( "Failed to deserialize app settings" ) ;
691691 }
692692
693- LayerMask . AllLayers = AppSettings . Current . layers ;
694- LayerMask . AllSortingLayers = AppSettings . Current . sortingLayers ;
693+ LayerMask . AllLayers . Clear ( ) ;
694+ LayerMask . AllSortingLayers . Clear ( ) ;
695+
696+ LayerMask . AllLayers . AddRange ( AppSettings . Current . layers ) ;
697+ LayerMask . AllSortingLayers . AddRange ( AppSettings . Current . sortingLayers ) ;
695698 }
696699 catch ( Exception e )
697700 {
0 commit comments