Skip to content

Commit 834291c

Browse files
committed
update for orientation on mobile view
1 parent b1abe14 commit 834291c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

TreeMapChart/TreeMapChart/Platforms/Android/MainActivity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace TreeMapChart
66
{
7-
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
7+
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ScreenOrientation = ScreenOrientation.Portrait, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
88
public class MainActivity : MauiAppCompatActivity
99
{
1010
}

TreeMapChart/TreeMapChart/Platforms/iOS/Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
<key>UISupportedInterfaceOrientations</key>
1717
<array>
1818
<string>UIInterfaceOrientationPortrait</string>
19-
<string>UIInterfaceOrientationLandscapeLeft</string>
20-
<string>UIInterfaceOrientationLandscapeRight</string>
2119
</array>
2220
<key>UISupportedInterfaceOrientations~ipad</key>
2321
<array>

0 commit comments

Comments
 (0)