mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 18:38:27 +03:00
add toggle for removing links to pages containing subscription info (#1463)
This commit is contained in:
parent
9c1df2179c
commit
96454b7cbf
1 changed files with 19 additions and 4 deletions
|
@ -379,17 +379,23 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
var accountItems = new List<SettingsPageListItem>
|
var accountItems = new List<SettingsPageListItem>
|
||||||
{
|
{
|
||||||
new SettingsPageListItem { Name = AppResources.ChangeMasterPassword },
|
|
||||||
new SettingsPageListItem { Name = AppResources.FingerprintPhrase },
|
new SettingsPageListItem { Name = AppResources.FingerprintPhrase },
|
||||||
new SettingsPageListItem { Name = AppResources.LogOut }
|
new SettingsPageListItem { Name = AppResources.LogOut }
|
||||||
};
|
};
|
||||||
|
if (IncludeLinksWithSubscriptionInfo())
|
||||||
|
{
|
||||||
|
accountItems.Insert(0, new SettingsPageListItem { Name = AppResources.ChangeMasterPassword });
|
||||||
|
}
|
||||||
var toolsItems = new List<SettingsPageListItem>
|
var toolsItems = new List<SettingsPageListItem>
|
||||||
{
|
{
|
||||||
new SettingsPageListItem { Name = AppResources.ImportItems },
|
new SettingsPageListItem { Name = AppResources.ImportItems },
|
||||||
new SettingsPageListItem { Name = AppResources.ExportVault },
|
new SettingsPageListItem { Name = AppResources.ExportVault }
|
||||||
new SettingsPageListItem { Name = AppResources.ShareVault },
|
|
||||||
new SettingsPageListItem { Name = AppResources.WebVault }
|
|
||||||
};
|
};
|
||||||
|
if (IncludeLinksWithSubscriptionInfo())
|
||||||
|
{
|
||||||
|
toolsItems.Add(new SettingsPageListItem { Name = AppResources.ShareVault });
|
||||||
|
toolsItems.Add(new SettingsPageListItem { Name = AppResources.WebVault });
|
||||||
|
}
|
||||||
var otherItems = new List<SettingsPageListItem>
|
var otherItems = new List<SettingsPageListItem>
|
||||||
{
|
{
|
||||||
new SettingsPageListItem { Name = AppResources.Options },
|
new SettingsPageListItem { Name = AppResources.Options },
|
||||||
|
@ -408,6 +414,15 @@ namespace Bit.App.Pages
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool IncludeLinksWithSubscriptionInfo()
|
||||||
|
{
|
||||||
|
if (Device.RuntimePlatform == Device.iOS)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
private string GetVaultTimeoutActionFromKey(string key)
|
private string GetVaultTimeoutActionFromKey(string key)
|
||||||
{
|
{
|
||||||
return _vaultTimeoutActions.FirstOrDefault(o => o.Key == key).Value;
|
return _vaultTimeoutActions.FirstOrDefault(o => o.Key == key).Value;
|
||||||
|
|
Loading…
Reference in a new issue