Skip to content

Commit

Permalink
refactor: Change context field to volatile
Browse files Browse the repository at this point in the history
Field is set from main thread, but can be immediately accessed by non main threads.
  • Loading branch information
LisoUseInAIKyrios committed Dec 27, 2024
1 parent fe5bdb8 commit b61c8ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
public class Utils {

@SuppressLint("StaticFieldLeak")
private static Context context;
private static volatile Context context;

private static String versionName;
private static String applicationLabel;
Expand Down

0 comments on commit b61c8ec

Please sign in to comment.