mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 13:43:28 +00:00
Migrated to new JobManager.
This commit is contained in:
@@ -852,7 +852,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
ApplicationContext.getInstance(ConversationActivity.this)
|
||||
.getJobManager()
|
||||
.add(new MultiDeviceBlockedUpdateJob(ConversationActivity.this));
|
||||
.add(new MultiDeviceBlockedUpdateJob());
|
||||
|
||||
return null;
|
||||
}
|
||||
@@ -1377,7 +1377,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
} else if (ExpiredBuildReminder.isEligible()) {
|
||||
reminderView.get().showReminder(new ExpiredBuildReminder(this));
|
||||
} else if (ServiceOutageReminder.isEligible(this)) {
|
||||
ApplicationContext.getInstance(this).getJobManager().add(new ServiceOutageDetectionJob(this));
|
||||
ApplicationContext.getInstance(this).getJobManager().add(new ServiceOutageDetectionJob());
|
||||
reminderView.get().showReminder(new ServiceOutageReminder(this));
|
||||
} else if (TextSecurePreferences.isPushRegistered(this) &&
|
||||
TextSecurePreferences.isShowInviteReminders(this) &&
|
||||
@@ -1629,7 +1629,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
ApplicationContext.getInstance(this)
|
||||
.getJobManager()
|
||||
.add(new RetrieveProfileJob(this, recipient));
|
||||
.add(new RetrieveProfileJob(recipient));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -992,7 +992,7 @@ public class ConversationFragment extends Fragment
|
||||
if (requestCode == CODE_ADD_EDIT_CONTACT && getContext() != null) {
|
||||
ApplicationContext.getInstance(getContext().getApplicationContext())
|
||||
.getJobManager()
|
||||
.add(new DirectoryRefreshJob(getContext().getApplicationContext(), false));
|
||||
.add(new DirectoryRefreshJob(false));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1043,7 +1043,7 @@ public class ConversationItem extends LinearLayout
|
||||
Log.i(TAG, "Scheduling MMS attachment download");
|
||||
ApplicationContext.getInstance(context)
|
||||
.getJobManager()
|
||||
.add(new MmsDownloadJob(context, messageRecord.getId(),
|
||||
.add(new MmsDownloadJob(messageRecord.getId(),
|
||||
messageRecord.getThreadId(), false));
|
||||
} else {
|
||||
Log.i(TAG, "Scheduling push attachment downloads for " + slides.size() + " items");
|
||||
@@ -1051,7 +1051,7 @@ public class ConversationItem extends LinearLayout
|
||||
for (Slide slide : slides) {
|
||||
ApplicationContext.getInstance(context)
|
||||
.getJobManager()
|
||||
.add(new AttachmentDownloadJob(context, messageRecord.getId(),
|
||||
.add(new AttachmentDownloadJob(messageRecord.getId(),
|
||||
((DatabaseAttachment)slide.asAttachment()).getAttachmentId(), true));
|
||||
}
|
||||
}
|
||||
@@ -1171,7 +1171,7 @@ public class ConversationItem extends LinearLayout
|
||||
|
||||
ApplicationContext.getInstance(context)
|
||||
.getJobManager()
|
||||
.add(new MmsSendJob(context, messageRecord.getId()));
|
||||
.add(new MmsSendJob(messageRecord.getId()));
|
||||
} else {
|
||||
SmsDatabase database = DatabaseFactory.getSmsDatabase(context);
|
||||
database.markAsInsecure(messageRecord.getId());
|
||||
|
||||
Reference in New Issue
Block a user