mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Add new joined donations screen.
This commit is contained in:
@@ -39,6 +39,13 @@ class DonationReceiptDatabase(context: Context, databaseHelper: SignalDatabase)
|
||||
)
|
||||
}
|
||||
|
||||
fun hasReceipts(): Boolean {
|
||||
return readableDatabase.query(TABLE_NAME, SqlUtil.COUNT, null, null, null, null, null, null).use {
|
||||
it.moveToFirst()
|
||||
it.getInt(0) > 0
|
||||
}
|
||||
}
|
||||
|
||||
fun addReceipt(record: DonationReceiptRecord) {
|
||||
require(record.id == -1L)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user