mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 11:20:47 +01:00
Add support for canceling Jobs.
This commit is contained in:
@@ -48,7 +48,7 @@ public class MigrationCompleteJob extends BaseJob {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCanceled() {
|
||||
public void onFailure() {
|
||||
throw new AssertionError("This job should never fail.");
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ abstract class MigrationJob extends Job {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCanceled() {
|
||||
public void onFailure() {
|
||||
throw new AssertionError("This job should never fail. " + getClass().getSimpleName());
|
||||
}
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ public final class RegistrationPinV2MigrationJob extends BaseJob {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCanceled() {
|
||||
public void onFailure() {
|
||||
}
|
||||
|
||||
public static class Factory implements Job.Factory<RegistrationPinV2MigrationJob> {
|
||||
|
||||
Reference in New Issue
Block a user