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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user