private static final String PREFERENCES_FILE = "ACTIVITY_STORE";
private static final String PREFIX_ID = ActivityStore.class.getCanonicalName() + ".KEY";
private static final String ACTIVITY_ID = "ACTIVITY";
private static final String CONFIDENCE_ID = "CONFIDENCE";
private static final String VERSION_CODE_ID = "VERSION_CODE";
<BUG>private final SharedPreferences preferences;
public ActivityStore(@NonNull Context context) {
preferences = context.getSharedPreferences(PREFERENCES_FILE, Context.MODE_PRIVATE);
}</BUG>
public void put(String id, DetectedActivity activity) {

private static final String PREFERENCES_FILE = "ACTIVITY_STORE";
private static final String PREFIX_ID = ActivityStore.class.getCanonicalName() + ".KEY";
private static final String ACTIVITY_ID = "ACTIVITY";
private static final String CONFIDENCE_ID = "CONFIDENCE";
private static final String VERSION_CODE_ID = "VERSION_CODE";
private SharedPreferences preferences;
public ActivityStore(@NonNull Context context) {
preferences = context.getSharedPreferences(PREFERENCES_FILE, Context.MODE_PRIVATE);
}
void setPreferences(SharedPreferences preferences) {
this.preferences = preferences;
}
public void put(String id, DetectedActivity activity) {
