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:
LisoUseInAIKyrios 2024-12-27 11:15:35 +04:00
parent fe5bdb882b
commit b61c8ec8da

View File

@ -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;