mirror of
https://github.com/oliexdev/openScale.git
synced 2025-09-01 20:33:31 +02:00
Make sure OpenScale instance only holds an application context
This commit is contained in:
@@ -94,7 +94,7 @@ public class OpenScale {
|
|||||||
|
|
||||||
public static OpenScale getInstance(Context context) {
|
public static OpenScale getInstance(Context context) {
|
||||||
if (instance == null) {
|
if (instance == null) {
|
||||||
instance = new OpenScale(context);
|
instance = new OpenScale(context.getApplicationContext());
|
||||||
}
|
}
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
|
Reference in New Issue
Block a user