2019-03-28 06:44:54 +03:00
|
|
|
|
using Android.App;
|
2019-03-28 03:12:44 +03:00
|
|
|
|
using Android.Content.PM;
|
|
|
|
|
using Android.Runtime;
|
|
|
|
|
using Android.OS;
|
|
|
|
|
|
|
|
|
|
namespace Bit.Droid
|
|
|
|
|
{
|
|
|
|
|
[Activity(
|
|
|
|
|
Label = "Bitwarden",
|
|
|
|
|
MainLauncher = true,
|
|
|
|
|
Icon = "@mipmap/ic_launcher",
|
|
|
|
|
Theme = "@style/MainTheme",
|
|
|
|
|
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
|
|
|
|
|
[Register("com.x8bit.bitwarden.MainActivity")]
|
2019-03-28 06:44:54 +03:00
|
|
|
|
public class MainActivity : Xamarin.Forms.Platform.Android.FormsAppCompatActivity
|
2019-03-28 03:12:44 +03:00
|
|
|
|
{
|
|
|
|
|
protected override void OnCreate(Bundle savedInstanceState)
|
|
|
|
|
{
|
|
|
|
|
TabLayoutResource = Resource.Layout.Tabbar;
|
|
|
|
|
ToolbarResource = Resource.Layout.Toolbar;
|
|
|
|
|
|
|
|
|
|
base.OnCreate(savedInstanceState);
|
2019-03-28 06:44:54 +03:00
|
|
|
|
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
|
|
|
|
|
Xamarin.Forms.Forms.Init(this, savedInstanceState);
|
2019-03-28 03:12:44 +03:00
|
|
|
|
LoadApplication(new App.App());
|
|
|
|
|
}
|
2019-03-28 06:44:54 +03:00
|
|
|
|
|
|
|
|
|
public override void OnRequestPermissionsResult(int requestCode, string[] permissions,
|
|
|
|
|
[GeneratedEnum] Permission[] grantResults)
|
|
|
|
|
{
|
|
|
|
|
Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);
|
|
|
|
|
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
|
|
|
|
|
}
|
2019-03-28 03:12:44 +03:00
|
|
|
|
}
|
2019-03-28 06:44:54 +03:00
|
|
|
|
}
|