Skip to content

Commit 8bfbdfd

Browse files
kmayoralcortinico
andcommitted
Updating sample invocation of getLaunchIntent() (#150)
* Updating sample invocation of getLaunchIntent() Updated `Chucker.getLaunchIntent(context)` to `Chucker.getLaunchIntent(context, Chucker.SCREEN_HTTP)` * Hide parameter list in example Co-authored-by: Nicola Corti <corti.nico@gmail.com>
1 parent a45ffec commit 8bfbdfd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/migrating-from-2.0.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Generally name of classes from Chucker 2.x used to have `Chuck` as a prefix (e.g
1111
So if to launch the UI of Chucker, you would normally call:
1212

1313
```kotlin
14-
Chuck.getLaunchIntent(context)
14+
Chuck.getLaunchIntent(...)
1515
```
1616

1717
now you will call
1818

1919
```kotlin
20-
Chucker.getLaunchIntent(context)
20+
Chucker.getLaunchIntent(...)
2121
```
2222

2323
## 2. Package name changes
@@ -92,4 +92,4 @@ The `Period` enum has also been moved from `ChuckCollector` to `RetentionManager
9292

9393
## 5. registerDefaultCrashHanlder typo
9494

95-
The function `Chuck.registerDefaultCrashHanlder` contained a typo in the name and now is moved to `Chucker.registerDefaultCrashHandler`.
95+
The function `Chuck.registerDefaultCrashHanlder` contained a typo in the name and now is moved to `Chucker.registerDefaultCrashHandler`.

docs/migrating-from-chuck.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ Generally name of classes from Chuck (e.g. `ChuckInterceptor`) got udpated to Ch
116116
So if to launch the UI of Chuck, you would normally call:
117117

118118
```kotlin
119-
Chuck.getLaunchIntent(context)
119+
Chuck.getLaunchIntent(...)
120120
```
121121

122122
now you will call
123123

124124
```kotlin
125-
Chucker.getLaunchIntent(context)
125+
Chucker.getLaunchIntent(...)
126126
```

0 commit comments

Comments
 (0)