[fenix] For https://github.com/mozilla-mobile/fenix/issues/15644: change apply to...
commitb877b42a10208b040971d5e7471df3e454ca3fdb
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 14 Oct 2020 22:33:36 +0000 (14 15:33 -0700)
committerMichael Comella <mcomella@fastmail.com>
Thu, 15 Oct 2020 16:53:13 +0000 (15 09:53 -0700)
tree3cb20f92c7befb3fa002ba665c8e56817001b8b2
parentd821b7456b2e22b1670e2dc3020b4a93aff944da
[fenix] For https://github.com/mozilla-mobile/fenix/issues/15644: change apply to with in GleanMetricsService.

While the callback receiver is identical in these two methods, they're
semantically different: apply is for initializing the receiver while with
is anything else benefiting from a new `this` receiver.

I didn't change the usage of apply that has a return statement because I
was afraid my change might change behavior.
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt