1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-31 03:59:56 +02:00

Make sure OpenScale instance only holds an application context

This commit is contained in:
Erik Johansson
2018-02-25 00:01:03 +01:00
parent 05540fd103
commit eb567e9b5a

View File

@@ -94,7 +94,7 @@ public class OpenScale {
public static OpenScale getInstance(Context context) {
if (instance == null) {
instance = new OpenScale(context);
instance = new OpenScale(context.getApplicationContext());
}
return instance;