diff --git a/app/src/main/java/it/dhd/oxygencustomizer/OxygenCustomizer.java b/app/src/main/java/it/dhd/oxygencustomizer/OxygenCustomizer.java index f77cb080..11c5834d 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/OxygenCustomizer.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/OxygenCustomizer.java @@ -23,7 +23,7 @@ public void onCreate() { public static Context getAppContext() { if (contextReference == null || contextReference.get() == null) { - contextReference = new WeakReference<>(OxygenCustomizer.getInstance().getApplicationContext()); + contextReference = new WeakReference<>(OxygenCustomizer.get().getApplicationContext()); } return contextReference.get(); } @@ -32,7 +32,7 @@ public static Context getAppContextLocale() { return LocaleHelper.setLocale(getAppContext()); } - private static OxygenCustomizer getInstance() { + public static OxygenCustomizer get() { if (instance == null) { instance = new OxygenCustomizer(); }