Which one makes more sense? I don't care about the...
# getting-started
s
Which one makes more sense? I don't care about the return values here
Copy code
mFilter.run {
            addAction( Intent.ACTION_PACKAGE_INSTALL )
            addAction( Intent.ACTION_PACKAGE_ADDED )
            addAction( Intent.ACTION_PACKAGE_REMOVED )
            addAction( Intent.ACTION_PACKAGE_FULLY_REMOVED )
            addDataScheme("package")
        }

        mFilter.apply {
            addAction( Intent.ACTION_PACKAGE_INSTALL )
            addAction( Intent.ACTION_PACKAGE_ADDED )
            addAction( Intent.ACTION_PACKAGE_REMOVED )
            addAction( Intent.ACTION_PACKAGE_FULLY_REMOVED )
            addDataScheme("package")
        }
h
with(mFilter)
s
Thx