JakeWharton / scalpel

A surgical debugging tool to uncover the layers under your app.
Apache License 2.0
2.76k stars 231 forks source link

Investigate Usage Outside View Hierarchy #7

Open JakeWharton opened 10 years ago

JakeWharton commented 10 years ago

It sucks having to put this in your hierarchy. What if we walked up the tree and attached ourself at the end of the ViewRootImpl automatically? It could even be idempotent so you always just call:

Scalpel.obtain(this /* <-- activity */).someControl()
JakeWharton commented 10 years ago

This would have to be optional since we (as in me) don't want to clobber things like debug drawers.