diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj
index ed25bc9bf..4bfa1d1b6 100644
--- a/src/Android/Android.csproj
+++ b/src/Android/Android.csproj
@@ -126,7 +126,6 @@
-
diff --git a/src/Android/MainActivity.cs b/src/Android/MainActivity.cs
index 628a2164c..ffce1caff 100644
--- a/src/Android/MainActivity.cs
+++ b/src/Android/MainActivity.cs
@@ -23,8 +23,8 @@ namespace Bit.Droid
[Activity(
Label = "Bitwarden",
Icon = "@mipmap/ic_launcher",
- Theme = "@style/LightTheme",
- Exported = false,
+ Theme = "@style/LightTheme.Splash",
+ MainLauncher = true,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
[Register("com.x8bit.bitwarden.MainActivity")]
public class MainActivity : Xamarin.Forms.Platform.Android.FormsAppCompatActivity
@@ -301,7 +301,7 @@ namespace Bit.Droid
private void RestartApp()
{
- var intent = new Intent(this, typeof(SplashActivity));
+ var intent = new Intent(this, typeof(MainActivity));
var pendingIntent = PendingIntent.GetActivity(this, 5923650, intent, PendingIntentFlags.CancelCurrent);
var alarmManager = GetSystemService(AlarmService) as AlarmManager;
var triggerMs = Java.Lang.JavaSystem.CurrentTimeMillis() + 500;
diff --git a/src/Android/Properties/AndroidManifest.xml b/src/Android/Properties/AndroidManifest.xml
index 92ea739c6..47e2653d6 100644
--- a/src/Android/Properties/AndroidManifest.xml
+++ b/src/Android/Properties/AndroidManifest.xml
@@ -19,8 +19,6 @@
- {
- var mainIntent = new Intent(Application.Context, typeof(MainActivity));
- mainIntent.PutExtra("myVaultTile", Intent.GetBooleanExtra("myVaultTile", false));
- StartActivity(mainIntent);
- });
- startupWork.Start();
- }
-
- private void UpdateTheme(string theme)
- {
- if(theme == "dark")
- {
- SetTheme(Resource.Style.DarkTheme_Splash);
- }
- else if(theme == "black")
- {
- SetTheme(Resource.Style.BlackTheme_Splash);
- }
- else if(theme == "nord")
- {
- SetTheme(Resource.Style.NordTheme_Splash);
- }
- else
- {
- SetTheme(Resource.Style.LightTheme_Splash);
- }
- }
- }
-}
diff --git a/src/Android/Tile/MyVaultTileService.cs b/src/Android/Tile/MyVaultTileService.cs
index 535abf830..56b74585b 100644
--- a/src/Android/Tile/MyVaultTileService.cs
+++ b/src/Android/Tile/MyVaultTileService.cs
@@ -59,7 +59,7 @@ namespace Bit.Droid.Tile
private void LaunchMyVault()
{
- var intent = new Intent(this, typeof(SplashActivity));
+ var intent = new Intent(this, typeof(MainActivity));
intent.SetFlags(ActivityFlags.NewTask | ActivityFlags.SingleTop | ActivityFlags.ClearTop);
intent.PutExtra("myVaultTile", true);
StartActivityAndCollapse(intent);