summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/activity/AddFeedActivity.java
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-08-02 12:31:33 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-08-02 12:31:33 +0200
commit8960d85452dc851d36c80e411ce7a63020ab6efb (patch)
treea13b7eff9f17739123fca175239ab856943ba50b /src/de/danoeh/antennapod/activity/AddFeedActivity.java
parentc69dfff36c6cbda46b2060a8417bdea69010f82d (diff)
downloadAntennaPod-8960d85452dc851d36c80e411ce7a63020ab6efb.zip
Added button to access the Miro Guide from the AddFeedActivity
Diffstat (limited to 'src/de/danoeh/antennapod/activity/AddFeedActivity.java')
-rw-r--r--src/de/danoeh/antennapod/activity/AddFeedActivity.java24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/de/danoeh/antennapod/activity/AddFeedActivity.java b/src/de/danoeh/antennapod/activity/AddFeedActivity.java
index c3d533cdd..19d24c7be 100644
--- a/src/de/danoeh/antennapod/activity/AddFeedActivity.java
+++ b/src/de/danoeh/antennapod/activity/AddFeedActivity.java
@@ -12,6 +12,7 @@ import android.content.IntentFilter;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
+import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
@@ -37,6 +38,7 @@ public class AddFeedActivity extends SherlockActivity {
private FeedManager manager;
private EditText etxtFeedurl;
+ private Button butBrowseMiroGuide;
private Button butConfirm;
private Button butCancel;
private long downloadId;
@@ -76,9 +78,19 @@ public class AddFeedActivity extends SherlockActivity {
};
etxtFeedurl = (EditText) findViewById(R.id.etxtFeedurl);
+ butBrowseMiroGuide = (Button) findViewById(R.id.butBrowseMiroguide);
butConfirm = (Button) findViewById(R.id.butConfirm);
butCancel = (Button) findViewById(R.id.butCancel);
+ butBrowseMiroGuide.setOnClickListener(new OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ startActivity(new Intent(AddFeedActivity.this,
+ MiroGuideMainActivity.class));
+ }
+ });
+
butConfirm.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
@@ -100,13 +112,16 @@ public class AddFeedActivity extends SherlockActivity {
super.onResume();
StorageUtils.checkStorageAvailability(this);
Intent intent = getIntent();
- if (intent.getAction() != null && intent.getAction().equals(Intent.ACTION_SEND)) {
- if (AppConfig.DEBUG) Log.d(TAG, "Was started with ACTION_SEND intent");
+ if (intent.getAction() != null
+ && intent.getAction().equals(Intent.ACTION_SEND)) {
+ if (AppConfig.DEBUG)
+ Log.d(TAG, "Was started with ACTION_SEND intent");
String text = intent.getStringExtra(Intent.EXTRA_TEXT);
if (text != null) {
etxtFeedurl.setText(text);
} else {
- if (AppConfig.DEBUG) Log.d(TAG, "No text was sent");
+ if (AppConfig.DEBUG)
+ Log.d(TAG, "No text was sent");
}
}
@@ -115,7 +130,8 @@ public class AddFeedActivity extends SherlockActivity {
@Override
protected void onStop() {
super.onStop();
- if (AppConfig.DEBUG) Log.d(TAG, "Stopping Activity");
+ if (AppConfig.DEBUG)
+ Log.d(TAG, "Stopping Activity");
}
@Override