mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-16 22:07:31 +01: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:
parent
fe5bdb882b
commit
b61c8ec8da
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user