mirror of
https://github.com/bitwarden/android.git
synced 2024-12-20 00:02:58 +03:00
Only show IsBusy indicator on vault list pages
This commit is contained in:
parent
503561d838
commit
2d6407f9a0
2 changed files with 3 additions and 4 deletions
|
@ -9,7 +9,7 @@ namespace Bit.App.Controls
|
||||||
private ISyncService _syncService;
|
private ISyncService _syncService;
|
||||||
private bool _syncIndicator;
|
private bool _syncIndicator;
|
||||||
|
|
||||||
public ExtendedContentPage(bool syncIndicator = true)
|
public ExtendedContentPage(bool syncIndicator = false)
|
||||||
{
|
{
|
||||||
_syncIndicator = syncIndicator;
|
_syncIndicator = syncIndicator;
|
||||||
_syncService = Resolver.Resolve<ISyncService>();
|
_syncService = Resolver.Resolve<ISyncService>();
|
||||||
|
@ -18,8 +18,6 @@ namespace Bit.App.Controls
|
||||||
|
|
||||||
if(_syncIndicator)
|
if(_syncIndicator)
|
||||||
{
|
{
|
||||||
IsBusy = _syncService.SyncInProgress;
|
|
||||||
|
|
||||||
MessagingCenter.Subscribe<Application, bool>(Application.Current, "SyncCompleted", (sender, success) =>
|
MessagingCenter.Subscribe<Application, bool>(Application.Current, "SyncCompleted", (sender, success) =>
|
||||||
{
|
{
|
||||||
IsBusy = _syncService.SyncInProgress;
|
IsBusy = _syncService.SyncInProgress;
|
||||||
|
@ -48,7 +46,7 @@ namespace Bit.App.Controls
|
||||||
{
|
{
|
||||||
if(_syncIndicator)
|
if(_syncIndicator)
|
||||||
{
|
{
|
||||||
IsBusy = _syncService.SyncInProgress;
|
IsBusy = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
base.OnDisappearing();
|
base.OnDisappearing();
|
||||||
|
|
|
@ -31,6 +31,7 @@ namespace Bit.App.Pages
|
||||||
private bool _loadExistingData;
|
private bool _loadExistingData;
|
||||||
|
|
||||||
public VaultListSitesPage(bool favorites)
|
public VaultListSitesPage(bool favorites)
|
||||||
|
: base(true)
|
||||||
{
|
{
|
||||||
_favorites = favorites;
|
_favorites = favorites;
|
||||||
_folderService = Resolver.Resolve<IFolderService>();
|
_folderService = Resolver.Resolve<IFolderService>();
|
||||||
|
|
Loading…
Reference in a new issue