set theme properly on app launch for ios

This commit is contained in:
Kyle Spearrin 2019-06-24 12:23:00 -04:00
parent 3ec5d894b3
commit 1af0178b50
2 changed files with 4 additions and 2 deletions

View file

@ -56,7 +56,8 @@ namespace Bit.App.Utilities
public static string GetTheme() public static string GetTheme()
{ {
return Xamarin.Essentials.Preferences.Get( 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));
} }
} }
} }

View file

@ -5,6 +5,7 @@ using System.Threading.Tasks;
using Bit.App.Abstractions; using Bit.App.Abstractions;
using Bit.App.Resources; using Bit.App.Resources;
using Bit.App.Services; using Bit.App.Services;
using Bit.App.Utilities;
using Bit.Core; using Bit.Core;
using Bit.Core.Abstractions; using Bit.Core.Abstractions;
using Bit.Core.Services; using Bit.Core.Services;
@ -61,7 +62,7 @@ namespace Bit.iOS
} }
else if(message.Command == "updatedTheme") else if(message.Command == "updatedTheme")
{ {
// ThemeManager.SetThemeStyle(message.Data as string);
} }
else if(message.Command == "copiedToClipboard") else if(message.Command == "copiedToClipboard")
{ {