Skip to content

Commit 9dae188

Browse files
authored
Add clarifying javadoc to FirebaseCrashlytics#setCrashlyticsCollectionEnabled (firebase#1495)
1 parent 6a6b72d commit 9dae188

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/FirebaseCrashlytics.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,10 @@ public boolean didCrashOnPreviousExecution() {
338338
* disabled. Use {@link #deleteUnsentReports()} to delete any reports stored on the device without
339339
* sending them to Crashlytics.
340340
*
341-
* @param enabled whether to enable automatic data collection.
341+
* @param enabled whether to enable automatic data collection. When set to `false`, the new value
342+
* does not apply until the next run of the app. If you want to disable data collection by
343+
* default for all app runs, add the `firebase_crashlytics_collection_enabled` flag to your
344+
* app's AndroidManifest.xml.
342345
*/
343346
public void setCrashlyticsCollectionEnabled(boolean enabled) {
344347
core.setCrashlyticsCollectionEnabled(enabled);

0 commit comments

Comments
 (0)