Skip to content

Commit a64c7e5

Browse files
authored
normalize Android templates (#2170)
1 parent 66e7061 commit a64c7e5

File tree

3 files changed

+5
-37
lines changed

3 files changed

+5
-37
lines changed

Templates/VisualStudio2022/ProjectTemplates/Android.NetCore/Activity.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ namespace $safeprojectname$
1111
, Theme = "@style/Theme.Splash"
1212
, AlwaysRetainTaskState = true
1313
, LaunchMode = LaunchMode.SingleInstance
14+
, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize | ConfigChanges.ScreenLayout | ConfigChanges.UiMode | ConfigChanges.SmallestScreenSize
1415
, ScreenOrientation = ScreenOrientation.FullSensor
15-
, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize | ConfigChanges.ScreenLayout | ConfigChanges.UiMode | ConfigChanges.SmallestScreenSize)]
16+
)]
1617
public class $safeprojectname$Activity : Microsoft.Xna.Framework.AndroidGameActivity
1718
{
1819
protected override void OnCreate(Bundle bundle)

Templates/VisualStudio2022/ProjectTemplates/Android.NetCore/Resources/Resource.Designer.cs

+1-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Templates/VisualStudio2022/ProjectTemplates/Multiplatform.NetCore/Android/Activity.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ namespace $ext_safeprojectname$
1111
, Theme = "@style/Theme.Splash"
1212
, AlwaysRetainTaskState = true
1313
, LaunchMode = LaunchMode.SingleInstance
14+
, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize | ConfigChanges.ScreenLayout | ConfigChanges.UiMode | ConfigChanges.SmallestScreenSize
1415
, ScreenOrientation = ScreenOrientation.FullSensor
15-
, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize | ConfigChanges.ScreenLayout | ConfigChanges.UiMode | ConfigChanges.SmallestScreenSize)]
16+
)]
1617
public class $ext_safeprojectname$Activity : Microsoft.Xna.Framework.AndroidGameActivity
1718
{
1819
protected override void OnCreate(Bundle bundle)

0 commit comments

Comments
 (0)