Skip to content

Commit

Permalink
OxygenCustomizer: get
Browse files Browse the repository at this point in the history
Signed-off-by: DHD2280 <[email protected]>
  • Loading branch information
DHD2280 committed Dec 13, 2024
1 parent 6172cd2 commit 0c91188
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand Down

0 comments on commit 0c91188

Please sign in to comment.