I have an onTouchListener on my TextView. On touch, I log with Timber.i()
and then I call finish()
. If after finish(), I launch my
The problem is that you are 'planting' trees in the Activities onCreate
method. Instead, use a custom Applications subclass and plant the trees there.
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
if (BuildConfig.DEBUG) {
Timber.plant(DebugTree())
}
}
}
And update your AndroidManifest accordingly: