From 2a763cb50405664ddeab5da844543387f0999de8 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Wed, 23 Oct 2013 08:36:52 +0200 Subject: [PATCH] Show the name of a torrent (in main screen) that is paused/resumed/started/stopped in crouton message. --- core/src/org/transdroid/core/gui/TorrentsActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/org/transdroid/core/gui/TorrentsActivity.java b/core/src/org/transdroid/core/gui/TorrentsActivity.java index 23c51eb4..c1113ac2 100644 --- a/core/src/org/transdroid/core/gui/TorrentsActivity.java +++ b/core/src/org/transdroid/core/gui/TorrentsActivity.java @@ -910,7 +910,7 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi torrent.mimicStart(); DaemonTaskResult result = StartTask.create(currentConnection, torrent, forced).execute(); if (result instanceof DaemonTaskResult) { - onTaskSucceeded((DaemonTaskSuccessResult) result, getString(R.string.result_started)); + onTaskSucceeded((DaemonTaskSuccessResult) result, getString(R.string.result_started, torrent.getName())); } else { onCommunicationError((DaemonTaskFailureResult) result, false); } @@ -922,7 +922,7 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi torrent.mimicStop(); DaemonTaskResult result = StopTask.create(currentConnection, torrent).execute(); if (result instanceof DaemonTaskResult) { - onTaskSucceeded((DaemonTaskSuccessResult) result, getString(R.string.result_stopped)); + onTaskSucceeded((DaemonTaskSuccessResult) result, getString(R.string.result_stopped, torrent.getName())); } else { onCommunicationError((DaemonTaskFailureResult) result, false); }