1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 18:43:43 +00:00

debug check on screenshot protection

This commit is contained in:
Kyle Spearrin
2017-07-24 15:04:31 -04:00
parent 679859fb37
commit 73425c0052
4 changed files with 15 additions and 21 deletions

View File

@@ -104,7 +104,7 @@ namespace Bit.App
if(string.IsNullOrWhiteSpace(_uri))
{
var lastBuild = _settings.GetValueOrDefault<string>(LastBuildKey);
if(InDebugMode() || lastBuild == null || lastBuild != _appInfoService.Build)
if(Utilities.Helpers.InDebugMode() || lastBuild == null || lastBuild != _appInfoService.Build)
{
_settings.AddOrUpdateValue(LastBuildKey, _appInfoService.Build);
_databaseService.CreateTables();
@@ -184,15 +184,6 @@ namespace Bit.App
}
}
private bool InDebugMode()
{
#if DEBUG
return true;
#else
return false;
#endif
}
private async Task FullSyncAsync()
{
if(_connectivity.IsConnected)