Skip to content

Commit

Permalink
Rename sync… to requestSync…
Browse files Browse the repository at this point in the history
This method does not perform the sync, but schedules
a sync request until it is possible.

Once experimental feature of 'Auto sync' disabling implemented,
this will be a convenient moment to skip such sync request in favor
of showing a notification.

Bug: N/A
Test: N/A
Change-Id: If01f8ac2ba234bbb20701cbfc07c1da34f6c9eb1

AOSP: 5aceb86f37066f0fbc388e4dda8505fa75dd4b41
  • Loading branch information
Googler authored and LeFrosch committed Jan 22, 2025
1 parent b603672 commit 3f2daf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public SyncResult getLastSyncResult() {
}

@Override
public ListenableFuture<SyncResult> syncProject(ProjectSystemSyncManager.SyncReason reason) {
public ListenableFuture<SyncResult> requestSyncProject(ProjectSystemSyncManager.SyncReason reason) {
SettableFuture<ProjectSystemSyncManager.SyncResult> syncResult = SettableFuture.create();

if (BlazeSyncStatus.getInstance(project).syncInProgress()) {
Expand Down

0 comments on commit 3f2daf1

Please sign in to comment.