Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -388,15 +388,15 @@ public class WarplyDBHelper extends SQLiteOpenHelper { | ... | @@ -388,15 +388,15 @@ public class WarplyDBHelper extends SQLiteOpenHelper { |
| 388 | } | 388 | } |
| 389 | 389 | ||
| 390 | public synchronized long getRequestsInQueueCount() { | 390 | public synchronized long getRequestsInQueueCount() { |
| 391 | - return DatabaseUtils.queryNumEntries(getReadableDatabase(KEY_CIPHER), TABLE_REQUESTS); | 391 | + return DatabaseUtils.queryNumEntries(getReadableDb(), TABLE_REQUESTS); |
| 392 | } | 392 | } |
| 393 | 393 | ||
| 394 | public synchronized long getPushRequestsInQueueCount() { | 394 | public synchronized long getPushRequestsInQueueCount() { |
| 395 | - return DatabaseUtils.queryNumEntries(getReadableDatabase(KEY_CIPHER), TABLE_PUSH_REQUESTS); | 395 | + return DatabaseUtils.queryNumEntries(getReadableDb(), TABLE_PUSH_REQUESTS); |
| 396 | } | 396 | } |
| 397 | 397 | ||
| 398 | public synchronized long getPushAckRequestsInQueueCount() { | 398 | public synchronized long getPushAckRequestsInQueueCount() { |
| 399 | - return DatabaseUtils.queryNumEntries(getReadableDatabase(KEY_CIPHER), TABLE_PUSH_ACK_REQUESTS); | 399 | + return DatabaseUtils.queryNumEntries(getReadableDb(), TABLE_PUSH_ACK_REQUESTS); |
| 400 | } | 400 | } |
| 401 | 401 | ||
| 402 | public synchronized void deleteRequests(Long... ids) { | 402 | public synchronized void deleteRequests(Long... ids) { | ... | ... |
-
Please register or login to post a comment