mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-11 13:46:17 +00:00
refactor: Change context field to volatile
Field is set from main thread, but can be immediately accessed by non main threads.
This commit is contained in:
@@ -46,7 +46,7 @@ import app.revanced.extension.shared.settings.preference.ReVancedAboutPreference
|
||||
public class Utils {
|
||||
|
||||
@SuppressLint("StaticFieldLeak")
|
||||
private static Context context;
|
||||
private static volatile Context context;
|
||||
|
||||
private static String versionName;
|
||||
private static String applicationLabel;
|
||||
|
||||
Reference in New Issue
Block a user