Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisPlugin.java
Show First 20 Lines • Show All 442 Lines • ▼ Show 20 Line(s) | 44 | public class MprisPlugin extends Plugin { | |||
---|---|---|---|---|---|
443 | public void startMainActivity(Activity parentActivity) { | 443 | public void startMainActivity(Activity parentActivity) { | ||
444 | Intent intent = new Intent(parentActivity, MprisActivity.class); | 444 | Intent intent = new Intent(parentActivity, MprisActivity.class); | ||
445 | intent.putExtra("deviceId", device.getDeviceId()); | 445 | intent.putExtra("deviceId", device.getDeviceId()); | ||
446 | parentActivity.startActivity(intent); | 446 | parentActivity.startActivity(intent); | ||
447 | } | 447 | } | ||
448 | 448 | | |||
449 | @Override | 449 | @Override | ||
450 | public String getActionName() { | 450 | public String getActionName() { | ||
451 | return context.getString(R.string.open_mpris_controls); | 451 | return context.getString(R.string.plugin_mpris_control); | ||
452 | } | 452 | } | ||
453 | 453 | | |||
454 | public void fetchedAlbumArt(String url) { | 454 | public void fetchedAlbumArt(String url) { | ||
455 | boolean doEmitUpdate = false; | 455 | boolean doEmitUpdate = false; | ||
456 | for (MprisPlayer player : players.values()) { | 456 | for (MprisPlayer player : players.values()) { | ||
457 | if (url.equals(player.albumArtUrl)) { | 457 | if (url.equals(player.albumArtUrl)) { | ||
458 | doEmitUpdate = true; | 458 | doEmitUpdate = true; | ||
459 | } | 459 | } | ||
Show All 33 Lines |