mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-18 22:41:44 +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
|
@Override
|
||||||
public boolean onCreate() {
|
public boolean onCreate() {
|
||||||
// need to create openScale instance for the provider if openScale app is closed
|
// need to create openScale instance for the provider if openScale app is closed
|
||||||
OpenScale.createInstance(getContext());
|
OpenScale.createInstance(getContext().getApplicationContext());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user