Use lambdas where possible
Summary: Let Android Studio replace anonymous types with lambdas. No manual code change.
Test Plan: Compile and superficial behaviour test
Reviewers: KDE Connect, philipc
Reviewed By: KDE Connect, philipc
Subscribers: philipc, KDE Connect
Tags: KDE Connect
Differential Revision: https://phabricator.kde.org/D12229