Skip to content

Commit

Permalink
Merge pull request #2664 from square/py/fix_api_breakage
Browse files Browse the repository at this point in the history
Add default to avoid change that breaks backward compat
  • Loading branch information
pyricau committed May 1, 2024
2 parents d4f8909 + 69c6eb6 commit 37c72e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -34,6 +34,7 @@ public abstract interface class leakcanary/InstallableWatcher {

public final class leakcanary/RootViewWatcher : leakcanary/InstallableWatcher {
public fun <init> (Lleakcanary/DeletableObjectReporter;Z)V
public synthetic fun <init> (Lleakcanary/DeletableObjectReporter;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun install ()V
public fun uninstall ()V
}
Expand Down
Expand Up @@ -37,7 +37,7 @@ import leakcanary.internal.friendly.mainHandler
*/
class RootViewWatcher(
private val deletableObjectReporter: DeletableObjectReporter,
private val watchDismissedDialogs: Boolean
private val watchDismissedDialogs: Boolean = false
) : InstallableWatcher {

private val listener = OnRootViewAddedListener { rootView ->
Expand Down

0 comments on commit 37c72e3

Please sign in to comment.