You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before all, thank you so much for your big release (4.10).
Description:
I need to have a static method into FlowManager that deinitialize the FlowManager to be reinitialized with init() method.
We can have a method like this into "FlowManager.java":
/**
* Close reference to context and {@link FlowConfig}
*/
public static synchronized void close() {
Set<Map.Entry<Class<?>, DatabaseDefinition>> entrySet =
globalDatabaseHolder.databaseClassLookupMap.entrySet();
for (Map.Entry<Class<?>, DatabaseDefinition> value : entrySet) {
value.getValue().close();
}
config = null;
// Reset the global database holder.
globalDatabaseHolder = new GlobalDatabaseHolder();
loadedModules.clear();
}
My best regards.
The text was updated successfully, but these errors were encountered:
I also has the same problem and for now I have work around by pass flag to application method: @OverRide
public boolean deleteDatabase(String name) {...}
to prevent delete db.
As I mentioned in another post better will be to have it per individual database (by class or even better by db name).
DBFlow Version: 4.10
Issue Kind (Bug, Question, Feature): Feature
Before all, thank you so much for your big release (4.10).
Description:
I need to have a static method into FlowManager that deinitialize the FlowManager to be reinitialized with
init()
method.We can have a method like this into "FlowManager.java":
My best regards.
The text was updated successfully, but these errors were encountered: