mirror of
https://github.com/bitwarden/mobile
synced 2025-12-21 10:43:22 +00:00
only clear cache if it hasnt been done in a while
This commit is contained in:
@@ -8,6 +8,13 @@ namespace Bit.iOS.Services
|
||||
{
|
||||
public class DeviceActionService : IDeviceActionService
|
||||
{
|
||||
private readonly IAppSettingsService _appSettingsService;
|
||||
|
||||
public DeviceActionService(IAppSettingsService appSettingsService)
|
||||
{
|
||||
_appSettingsService = appSettingsService;
|
||||
}
|
||||
|
||||
public void CopyToClipboard(string text)
|
||||
{
|
||||
UIPasteboard clipboard = UIPasteboard.General;
|
||||
@@ -44,6 +51,8 @@ namespace Bit.iOS.Services
|
||||
NSFileManager.DefaultManager.Remove(item, out itemError);
|
||||
}
|
||||
}
|
||||
|
||||
_appSettingsService.LastCacheClear = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
private UIViewController GetVisibleViewController(UIViewController controller = null)
|
||||
|
||||
Reference in New Issue
Block a user