replace cheogram cids with monocles
This commit is contained in:
parent
3b1f77fb5d
commit
eaab0b1048
2 changed files with 3 additions and 2 deletions
|
@ -99,6 +99,7 @@ dependencies {
|
||||||
implementation 'com.github.singpolyma:Better-Link-Movement-Method:4df081e1e4'
|
implementation 'com.github.singpolyma:Better-Link-Movement-Method:4df081e1e4'
|
||||||
implementation project(':libs:AXML')
|
implementation project(':libs:AXML')
|
||||||
implementation 'com.github.ipld:java-cid:v1.3.1'
|
implementation 'com.github.ipld:java-cid:v1.3.1'
|
||||||
|
implementation 'com.github.woltapp:blurhash:master'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1055,7 +1055,7 @@ public class DatabaseBackend extends SQLiteOpenHelper {
|
||||||
|
|
||||||
public DownloadableFile getFileForCid(Cid cid) {
|
public DownloadableFile getFileForCid(Cid cid) {
|
||||||
SQLiteDatabase db = this.getReadableDatabase();
|
SQLiteDatabase db = this.getReadableDatabase();
|
||||||
Cursor cursor = db.query("cheogram.cids", new String[]{"path"}, "cid=?", new String[]{cid.toString()}, null, null, null);
|
Cursor cursor = db.query("monocles.cids", new String[]{"path"}, "cid=?", new String[]{cid.toString()}, null, null, null);
|
||||||
DownloadableFile f = null;
|
DownloadableFile f = null;
|
||||||
if (cursor.moveToNext()) {
|
if (cursor.moveToNext()) {
|
||||||
f = new DownloadableFile(cursor.getString(0));
|
f = new DownloadableFile(cursor.getString(0));
|
||||||
|
@ -1066,7 +1066,7 @@ public class DatabaseBackend extends SQLiteOpenHelper {
|
||||||
|
|
||||||
public boolean isBlockedMedia(Cid cid) {
|
public boolean isBlockedMedia(Cid cid) {
|
||||||
SQLiteDatabase db = this.getReadableDatabase();
|
SQLiteDatabase db = this.getReadableDatabase();
|
||||||
Cursor cursor = db.query("cheogram.blocked_media", new String[]{"count(*)"}, "cid=?", new String[]{cid.toString()}, null, null, null);
|
Cursor cursor = db.query("monocles.blocked_media", new String[]{"count(*)"}, "cid=?", new String[]{cid.toString()}, null, null, null);
|
||||||
boolean is = false;
|
boolean is = false;
|
||||||
if (cursor.moveToNext()) {
|
if (cursor.moveToNext()) {
|
||||||
is = cursor.getInt(0) > 0;
|
is = cursor.getInt(0) > 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue