-
-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
Description
- Library Version: 1.2.0
- Affected Device(s): Within the code
Add a clear description about the problem.
@PreferenceFunction annotation doesn't work with target that is an object marked with @TypeConverter. Example:
@TypeConverter(BaseGsonConverter.class)
protected AccessToken accessToken;
@PreferenceFunction("AccessToken")
public AccessToken putAccessTokenFunction(AccessToken accessToken) {
accessToken.update();
return accessToken;
}
The code above generate a error code in the corresponding Preference_ file:
preference.edit().putString("AccessToken", super.putAccessTokenFunction(value.convertObject(accesstoken))).apply();
Reactions are currently unavailable