That fuck shit the fascists are using
1package org.tm.archive.migrations;
2
3import androidx.annotation.NonNull;
4import androidx.annotation.Nullable;
5
6import org.tm.archive.jobmanager.Job;
7
8/**
9 * A migration job that always passes. Not useful on it's own, but you can register it's factory for jobs that
10 * have been removed that you'd like to pass instead of keeping around.
11 */
12public final class PassingMigrationJob extends MigrationJob {
13
14 public static final String KEY = "PassingMigrationJob";
15
16 private PassingMigrationJob(Parameters parameters) {
17 super(parameters);
18 }
19
20 @Override
21 boolean isUiBlocking() {
22 return false;
23 }
24
25 @Override
26 void performMigration() {
27 // Nothing
28 }
29
30 @Override
31 boolean shouldRetry(@NonNull Exception e) {
32 return false;
33 }
34
35 @Override
36 public @NonNull String getFactoryKey() {
37 return KEY;
38 }
39
40 public static final class Factory implements Job.Factory<PassingMigrationJob> {
41 @Override
42 public @NonNull PassingMigrationJob create(@NonNull Parameters parameters, @Nullable byte[] serializedData) {
43 return new PassingMigrationJob(parameters);
44 }
45 }
46}