D16472: Add runWithPlugin helper
Nicolas Fella
noreply at phabricator.kde.org
Sun Oct 28 00:16:05 BST 2018
nicolasfella created this revision.
nicolasfella added a reviewer: KDE Connect.
Herald added a project: KDE Connect.
Herald added a subscriber: kdeconnect.
nicolasfella requested review of this revision.
REVISION SUMMARY
There is a common pattern:
BackgroundService.RunCommand
getDevice
check device != null
getPlugin
check plugin != null
doCode
Add a helper for this pattern and port existing code
REPOSITORY
R225 KDE Connect - Android application
BRANCH
runWithPlugin
REVISION DETAIL
https://phabricator.kde.org/D16472
AFFECTED FILES
src/org/kde/kdeconnect/BackgroundService.java
src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadActivity.java
src/org/kde/kdeconnect/Plugins/PresenterPlugin/PresenterActivity.java
src/org/kde/kdeconnect/Plugins/SystemvolumePlugin/SystemvolumeFragment.java
To: nicolasfella, #kde_connect
Cc: kdeconnect, skymoore, wistak, dvalencia, rmenezes, julioc, Leptopoda, timothyc, jdvr, yannux, Danial0_0, johnq, Pitel, adeen-s, SemperPeritus, daniel.z.tg, jeanv, seebauer, bugzy, MayeulC, menasshock, tctara, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20181027/b93b351e/attachment-0001.html>
More information about the KDEConnect
mailing list