From bdfe955f7e95720abd8823bdf54f4791837824f3 Mon Sep 17 00:00:00 2001 From: Ruslan Tkhakokhov Date: Mon, 27 Feb 2023 18:20:27 +0000 Subject: [PATCH] Address API feedback for BackupTransport#getBackupManagerMonitor 1. Link to BackupManagerMonitor instead of IBackupManagerMonitor in the javadoc. 2. Explain in the javadoc why the method can return null. Bug: 264927738 Test: N/A Change-Id: Ifc99b31f90ee873a396b7f6e35d3509ffa2dd521 --- core/java/android/app/backup/BackupTransport.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/java/android/app/backup/BackupTransport.java b/core/java/android/app/backup/BackupTransport.java index f56c8c3b0bdb8..dcac59c19df48 100644 --- a/core/java/android/app/backup/BackupTransport.java +++ b/core/java/android/app/backup/BackupTransport.java @@ -656,11 +656,14 @@ public class BackupTransport { } /** - * Ask the transport for a {@link IBackupManagerMonitor} instance which will be used by the + * Ask the transport for a {@link BackupManagerMonitor} instance which will be used by the * framework to report logging events back to the transport. * *

Backups requested from outside the framework may pass in a monitor with the request, * however backups initiated by the framework will call this method to retrieve one. + * + * @return {@link BackupManagerMonitor} or {@code null} if the transport implementation does not + * wish to receive the logging events. */ @Nullable public BackupManagerMonitor getBackupManagerMonitor() {