summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/activity/AddFeedActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/danoeh/antennapod/activity/AddFeedActivity.java')
-rw-r--r--src/de/danoeh/antennapod/activity/AddFeedActivity.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/de/danoeh/antennapod/activity/AddFeedActivity.java b/src/de/danoeh/antennapod/activity/AddFeedActivity.java
index 76478480b..d558043bd 100644
--- a/src/de/danoeh/antennapod/activity/AddFeedActivity.java
+++ b/src/de/danoeh/antennapod/activity/AddFeedActivity.java
@@ -12,6 +12,7 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.util.Log;
+import de.danoeh.antennapod.BuildConfig;
import de.danoeh.antennapod.R;
import de.danoeh.antennapod.asynctask.DownloadObserver;
import de.danoeh.antennapod.asynctask.DownloadStatus;
@@ -103,12 +104,12 @@ public class AddFeedActivity extends SherlockActivity {
StorageUtils.checkStorageAvailability(this);
Intent intent = getIntent();
if (intent.getAction() != null && intent.getAction().equals(Intent.ACTION_SEND)) {
- Log.d(TAG, "Was started with ACTION_SEND intent");
+ if (BuildConfig.DEBUG) Log.d(TAG, "Was started with ACTION_SEND intent");
String text = intent.getStringExtra(Intent.EXTRA_TEXT);
if (text != null) {
etxtFeedurl.setText(text);
} else {
- Log.d(TAG, "No text was sent");
+ if (BuildConfig.DEBUG) Log.d(TAG, "No text was sent");
}
}
@@ -117,7 +118,7 @@ public class AddFeedActivity extends SherlockActivity {
@Override
protected void onStop() {
super.onStop();
- Log.d(TAG, "Stopping Activity");
+ if (BuildConfig.DEBUG) Log.d(TAG, "Stopping Activity");
}
@Override