1
0
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:
Erik Johansson
2019-01-28 19:55:19 +01:00
parent ddae61af9f
commit 1c3ed6ac21

View File

@@ -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;
}