Only make one request for list of MPRIS players during plugin creation
ClosedPublic

Authored by philipc on Mar 24 2018, 4:14 PM.

Details

Summary

MPrisPlugin previously made two calls to requestPlayerList() in its
onCreate() method. This change deletes the first of those, so that
only one network packet is sent and received.

Test Plan

Pair a new device, confirm that only one request for media players is
received by remote client.

Diff Detail

Repository
R225 KDE Connect - Android application
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
philipc requested review of this revision.Mar 24 2018, 4:14 PM
philipc created this revision.
mtijink accepted this revision.Mar 24 2018, 4:24 PM
This revision is now accepted and ready to land.Mar 24 2018, 4:24 PM
This revision was automatically updated to reflect the committed changes.