mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
parent
45ecca69d3
commit
4229c21bdc
@ -57,11 +57,11 @@ public class MultiDeviceContactUpdateJob extends MasterSecretJob implements Inje
|
||||
|
||||
private final @Nullable String address;
|
||||
|
||||
public MultiDeviceContactUpdateJob(Context context) {
|
||||
public MultiDeviceContactUpdateJob(@NonNull Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public MultiDeviceContactUpdateJob(Context context, Address address) {
|
||||
public MultiDeviceContactUpdateJob(@NonNull Context context, @Nullable Address address) {
|
||||
super(context, JobParameters.newBuilder()
|
||||
.withRequirement(new NetworkRequirement(context))
|
||||
.withRequirement(new MasterSecretRequirement(context))
|
||||
@ -69,7 +69,8 @@ public class MultiDeviceContactUpdateJob extends MasterSecretJob implements Inje
|
||||
.withPersistence()
|
||||
.create());
|
||||
|
||||
this.address = address.serialize();
|
||||
if (address != null) this.address = address.serialize();
|
||||
else this.address = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user