2016-08-19 07:27:37 +03:00
|
|
|
using System;
|
|
|
|
using Android.App;
|
|
|
|
using Android.OS;
|
|
|
|
using Android.Content;
|
|
|
|
using Android.Support.V7.App;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace Bit.Android
|
|
|
|
{
|
2017-09-19 22:55:15 +03:00
|
|
|
[Activity(Theme = "@style/BitwardenTheme.Splash",
|
|
|
|
MainLauncher = true,
|
2016-08-19 07:27:37 +03:00
|
|
|
NoHistory = true,
|
2017-10-19 18:19:24 +03:00
|
|
|
WindowSoftInputMode = global::Android.Views.SoftInput.StateHidden)]
|
2016-08-19 07:27:37 +03:00
|
|
|
public class SplashActivity : AppCompatActivity
|
|
|
|
{
|
|
|
|
public override void OnCreate(Bundle savedInstanceState, PersistableBundle persistentState)
|
|
|
|
{
|
|
|
|
base.OnCreate(savedInstanceState, persistentState);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void OnResume()
|
|
|
|
{
|
|
|
|
base.OnResume();
|
|
|
|
var startupWork = new Task(() =>
|
|
|
|
{
|
2017-09-19 22:55:15 +03:00
|
|
|
var mainIntent = new Intent(Application.Context, typeof(MainActivity));
|
|
|
|
mainIntent.PutExtra("myVaultTile", Intent.GetBooleanExtra("myVaultTile", false));
|
|
|
|
StartActivity(mainIntent);
|
2016-08-19 07:27:37 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
startupWork.Start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|