New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell Android Handler #979
Conversation
D:\repos\dotnet\maui\src\Controls\src\Core\Platform\Android\Shell\ShellContentFragment.cs(16,85): error CS0246: The t |
2e94ad6
to
46896a3
Compare
Platform.Android.AppCompat.Platform.SetRenderer( | ||
VisualElementRenderer.Element, | ||
null); | ||
if (VisualElementRenderer.Element != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the renderer has already been cleared then don't try to clear it again
|
||
namespace Microsoft.Maui.Controls.Compatibility.Platform.Android | ||
{ | ||
public interface IShellContext | ||
public interface IShellContext : Microsoft.Maui.Controls.Platform.IShellContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will allow peoples custom shell renderers to shim and register correctly
@@ -272,7 +272,7 @@ protected virtual void SwitchFragment(FragmentManager manager, AView targetView, | |||
FragmentTransaction transaction = manager.BeginTransactionEx(); | |||
|
|||
if (animate) | |||
transaction.SetTransitionEx((int)global::Android.App.FragmentTransit.EnterMask); | |||
transaction.SetTransitionEx((int)global::Android.App.FragmentTransit.FragmentOpen); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to fix a crash that happens on newer versions of AndroidX
1a75876
to
7dfc9dc
Compare
@@ -20,20 +21,5 @@ public FormsViewPager(Context context, IAttributeSet attrs) : base(context, attr | |||
protected FormsViewPager(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer) | |||
{ | |||
} | |||
|
|||
public bool EnableGesture { get; set; } = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are all inside MauiViewPager now
a533492
to
7863dec
Compare
78078cb
to
caf0c42
Compare
* Android Shell Handler * - fix resource references on compatibility
Description of Change
Move Android Shell implementation, and related classes, into Controls.Core
Manage your expectations a bit on this one. This is mainly to get Shell inside the Maui.Controls library and then we can start fixing issues
Known Issues
The flyout items don't layout correctly because of
#746
#1049