diff --git a/yearclass/src/main/java/com/facebook/device/yearclass/YearClass.java b/yearclass/src/main/java/com/facebook/device/yearclass/YearClass.java index c74ec62..b57e5e5 100644 --- a/yearclass/src/main/java/com/facebook/device/yearclass/YearClass.java +++ b/yearclass/src/main/java/com/facebook/device/yearclass/YearClass.java @@ -26,7 +26,7 @@ public class YearClass { private static final long MB = 1024 * 1024; private static final int MHZ_IN_KHZ = 1000; - private static Integer mYearCategory; + private volatile static Integer mYearCategory; /** * Entry Point of YearClass. Extracts YearClass variable with memoizing. @@ -168,4 +168,4 @@ private static int getRamYear(Context c) { if (totalRam <= 2048 * MB) return CLASS_2013; return CLASS_2014; } -} \ No newline at end of file +}