I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit ed17d598 authored by str4d's avatar str4d
Browse files

Fix WebActivity handling of indirect Intents

parent 55cfd455
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,12 @@ public class WebActivity extends I2PActivityBase {
// Start with the base view
if (savedInstanceState == null) {
WebFragment f = new WebFragment();
f.setArguments(getIntent().getExtras());
if (getIntent().getData() != null) {
Bundle b = new Bundle();
b.putString(WebFragment.HTML_URI, getIntent().getDataString());
f.setArguments(b);
} else
f.setArguments(getIntent().getExtras());
getSupportFragmentManager().beginTransaction()
.add(R.id.main_fragment, f).commit();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment