Skip to content

Conversation

@thatfiredev
Copy link
Member

This is the same as #171 , but now in our Firebase Predictions snippets.


public class ConditionalAdsActivity extends AppCompatActivity {

private static final long CACHE_EXPIRATION = 60 * 1000;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to reviewer: This constant was being passed as argument to the (now deprecated) fetch() function. The new fetchAndActivate() function doesn't require it, since fetch interval should now be specified while configuring Remote Config.

final FirebaseRemoteConfig config = FirebaseRemoteConfig.getInstance();

Map remoteConfigDefaults = new HashMap<String, Object>();
Map<String, Object> remoteConfigDefaults = new HashMap<>();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to reviewer: Made this change to keep it consistent with the other snippets.

@samtstern
Copy link
Contributor

@rosariopfernandes LGTM and thank you for the reviewer notes!

@samtstern samtstern merged commit ffa732e into firebase:master Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants