mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-17 22:11:35 +02:00
Make sure to use application context in db provider
This commit is contained in:
@@ -88,7 +88,7 @@ public class ScaleDatabaseProvider extends android.content.ContentProvider {
|
||||
@Override
|
||||
public boolean onCreate() {
|
||||
// need to create openScale instance for the provider if openScale app is closed
|
||||
OpenScale.createInstance(getContext());
|
||||
OpenScale.createInstance(getContext().getApplicationContext());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user