mirror of
https://github.com/gsantner/dandelion
synced 2024-11-22 04:12:08 +01:00
Handle Intent.Action.Main in handleIntent()
This commit is contained in:
parent
e0e8adac19
commit
d8cbe480ad
1 changed files with 5 additions and 1 deletions
|
@ -182,8 +182,10 @@ public class MainActivity extends AppCompatActivity
|
||||||
});
|
});
|
||||||
|
|
||||||
if(!appSettings.hasPodDomain()) {
|
if(!appSettings.hasPodDomain()) {
|
||||||
|
AppLog.d(this, "We have no pod. Show PodSelectionFragment");
|
||||||
showFragment(getFragment(PodSelectionFragment.TAG));
|
showFragment(getFragment(PodSelectionFragment.TAG));
|
||||||
} else {
|
} else {
|
||||||
|
AppLog.d(this, "Pod found. Handle intents.");
|
||||||
//Handle intent
|
//Handle intent
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
if (intent != null && intent.getAction() != null) {
|
if (intent != null && intent.getAction() != null) {
|
||||||
|
@ -386,7 +388,9 @@ public class MainActivity extends AppCompatActivity
|
||||||
String type = intent.getType();
|
String type = intent.getType();
|
||||||
String loadUrl = null;
|
String loadUrl = null;
|
||||||
AppLog.v(this, "Action: " + action + " Type: " + type);
|
AppLog.v(this, "Action: " + action + " Type: " + type);
|
||||||
if (ACTION_OPEN_URL.equals(action)) {
|
if (Intent.ACTION_MAIN.equals(action)) {
|
||||||
|
loadUrl = urls.getStreamUrl();
|
||||||
|
} else if (ACTION_OPEN_URL.equals(action)) {
|
||||||
loadUrl = intent.getStringExtra(URL_MESSAGE);
|
loadUrl = intent.getStringExtra(URL_MESSAGE);
|
||||||
} else if (Intent.ACTION_VIEW.equals(action) && intent.getDataString() != null) {
|
} else if (Intent.ACTION_VIEW.equals(action) && intent.getDataString() != null) {
|
||||||
Uri data = intent.getData();
|
Uri data = intent.getData();
|
||||||
|
|
Loading…
Reference in a new issue