mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Renamed database classes to table classes.
Because they're not databases. They're tables.
This commit is contained in:
committed by
Cody Henthorne
parent
b190f9495a
commit
7949996c5c
@@ -22,7 +22,7 @@ import org.thoughtcrime.securesms.crypto.AttachmentSecret;
|
||||
import org.thoughtcrime.securesms.crypto.AttachmentSecretProvider;
|
||||
import org.thoughtcrime.securesms.crypto.ModernDecryptingPartInputStream;
|
||||
import org.thoughtcrime.securesms.crypto.ModernEncryptingPartOutputStream;
|
||||
import org.thoughtcrime.securesms.database.DraftDatabase;
|
||||
import org.thoughtcrime.securesms.database.DraftTable;
|
||||
import org.thoughtcrime.securesms.database.SignalDatabase;
|
||||
import org.thoughtcrime.securesms.util.IOFunction;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
@@ -244,8 +244,8 @@ public class BlobProvider {
|
||||
return;
|
||||
}
|
||||
|
||||
DraftDatabase draftDatabase = SignalDatabase.drafts();
|
||||
DraftDatabase.Drafts voiceNoteDrafts = draftDatabase.getAllVoiceNoteDrafts();
|
||||
DraftTable draftDatabase = SignalDatabase.drafts();
|
||||
DraftTable.Drafts voiceNoteDrafts = draftDatabase.getAllVoiceNoteDrafts();
|
||||
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
List<String> draftFileNames = voiceNoteDrafts.stream()
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.signal.core.util.logging.Log;
|
||||
import org.thoughtcrime.securesms.BuildConfig;
|
||||
import org.thoughtcrime.securesms.attachments.AttachmentId;
|
||||
import org.thoughtcrime.securesms.attachments.DatabaseAttachment;
|
||||
import org.thoughtcrime.securesms.database.AttachmentDatabase;
|
||||
import org.thoughtcrime.securesms.database.AttachmentTable;
|
||||
import org.thoughtcrime.securesms.database.SignalDatabase;
|
||||
import org.thoughtcrime.securesms.mms.PartUriParser;
|
||||
import org.thoughtcrime.securesms.service.KeyCachingService;
|
||||
@@ -215,10 +215,10 @@ public final class PartProvider extends BaseContentProvider {
|
||||
@RequiresApi(26)
|
||||
private static final class ProxyCallback extends ProxyFileDescriptorCallback {
|
||||
|
||||
private AttachmentDatabase attachments;
|
||||
private AttachmentId attachmentId;
|
||||
private AttachmentTable attachments;
|
||||
private AttachmentId attachmentId;
|
||||
|
||||
public ProxyCallback(@NonNull AttachmentDatabase attachments, @NonNull AttachmentId attachmentId) {
|
||||
public ProxyCallback(@NonNull AttachmentTable attachments, @NonNull AttachmentId attachmentId) {
|
||||
this.attachments = attachments;
|
||||
this.attachmentId = attachmentId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user