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
53b25ea7e9
commit
30009b723d
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ import app.revanced.extension.shared.settings.preference.ReVancedAboutPreference
|
||||||
public class Utils {
|
public class Utils {
|
||||||
|
|
||||||
@SuppressLint("StaticFieldLeak")
|
@SuppressLint("StaticFieldLeak")
|
||||||
private static Context context;
|
private static volatile Context context;
|
||||||
|
|
||||||
private static String versionName;
|
private static String versionName;
|
||||||
private static String applicationLabel;
|
private static String applicationLabel;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue