mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
ZipBackupCallback: add @Nullable / @NonNull annotations
This commit is contained in:
+2
-2
@@ -92,7 +92,7 @@ public class BackupRestoreProgressActivity extends AbstractGBActivity {
|
||||
|
||||
final ZipBackupCallback zipBackupCallback = new ZipBackupCallback() {
|
||||
@Override
|
||||
public void onProgress(final int progress, final String message) {
|
||||
public void onProgress(final int progress, final @Nullable String message) {
|
||||
mHandler.post(() -> {
|
||||
backupRestoreProgressBar.setIndeterminate(progress == 0);
|
||||
backupRestoreProgressBar.setProgress(progress);
|
||||
@@ -102,7 +102,7 @@ public class BackupRestoreProgressActivity extends AbstractGBActivity {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(final String warnings) {
|
||||
public void onSuccess(final @Nullable String warnings) {
|
||||
mHandler.post(() -> {
|
||||
jobFinished = true;
|
||||
backupRestoreHint.setVisibility(View.GONE);
|
||||
|
||||
+2
-2
@@ -19,9 +19,9 @@ package nodomain.freeyourgadget.gadgetbridge.util.backup;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
public interface ZipBackupCallback {
|
||||
void onProgress(final int progress, final String message);
|
||||
void onProgress(final int progress, @Nullable final String message);
|
||||
|
||||
void onSuccess(final String warnings);
|
||||
void onSuccess(@Nullable final String warnings);
|
||||
|
||||
void onFailure(@Nullable final String errorMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user