Created
November 13, 2019 19:25
-
-
Save rdelrosario/70b28c8e97dc590e9bf17a8651de7596 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Android.App; | |
using Android.Runtime; | |
using Plugin.CurrentActivity; | |
namespace CustomMediaGallery.Droid | |
{ | |
#if DEBUG | |
[Application(Debuggable = true)] | |
#else | |
[Application(Debuggable = false)] | |
#endif | |
public class MainApplication : Application | |
{ | |
public MainApplication(IntPtr handle, JniHandleOwnership transer) | |
: base(handle, transer) | |
{ | |
} | |
public override void OnCreate() | |
{ | |
base.OnCreate(); | |
CrossCurrentActivity.Current.Init(this); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment