1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-26 12:16:07 +01:00

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()
{
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.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")
{