mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
Synch DB helper creation with use of other instances.
This commit is contained in:
parent
2d65a159aa
commit
b723a4f431
1 changed files with 4 additions and 2 deletions
|
@ -56,8 +56,10 @@ public class BlurDatabaseHelper {
|
|||
public BlurDatabaseHelper(Context context) {
|
||||
this.context = context;
|
||||
dbWrapper = new BlurDatabase(context);
|
||||
dbRO = dbWrapper.getRO();
|
||||
dbRW = dbWrapper.getRW();
|
||||
synchronized (RW_MUTEX) {
|
||||
dbRO = dbWrapper.getRO();
|
||||
dbRW = dbWrapper.getRW();
|
||||
}
|
||||
}
|
||||
|
||||
public void close() {
|
||||
|
|
Loading…
Add table
Reference in a new issue