From 1af0178b50297af7bad503aac23f50c4e1ca5f2a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 24 Jun 2019 12:23:00 -0400 Subject: [PATCH] set theme properly on app launch for ios --- src/App/Utilities/ThemeManager.cs | 3 ++- src/iOS/AppDelegate.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App/Utilities/ThemeManager.cs b/src/App/Utilities/ThemeManager.cs index 3b68abb7f..c36c1fca8 100644 --- a/src/App/Utilities/ThemeManager.cs +++ b/src/App/Utilities/ThemeManager.cs @@ -56,7 +56,8 @@ namespace Bit.App.Utilities public static string GetTheme() { return Xamarin.Essentials.Preferences.Get( - string.Format(PreferencesStorageService.KeyFormat, Constants.ThemeKey), default(string)); + string.Format(PreferencesStorageService.KeyFormat, Constants.ThemeKey), default(string), + Device.RuntimePlatform == Device.iOS ? "group.com.8bit.bitwarden" : default(string)); } } } diff --git a/src/iOS/AppDelegate.cs b/src/iOS/AppDelegate.cs index 2d7fc4a11..46a2ad150 100644 --- a/src/iOS/AppDelegate.cs +++ b/src/iOS/AppDelegate.cs @@ -5,6 +5,7 @@ using System.Threading.Tasks; using Bit.App.Abstractions; using Bit.App.Resources; using Bit.App.Services; +using Bit.App.Utilities; using Bit.Core; using Bit.Core.Abstractions; using Bit.Core.Services; @@ -61,7 +62,7 @@ namespace Bit.iOS } else if(message.Command == "updatedTheme") { - + // ThemeManager.SetThemeStyle(message.Data as string); } else if(message.Command == "copiedToClipboard") {