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

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

Temporarily enable inbuilt browser until an alternative is ready

parent 76014f20
No related branches found
No related tags found
No related merge requests found
...@@ -44,13 +44,13 @@ ...@@ -44,13 +44,13 @@
android:label="I2P Web Browser" android:label="I2P Web Browser"
android:configChanges="orientation|keyboardHidden" > android:configChanges="orientation|keyboardHidden" >
<!-- Disabled, this browser is not very secure <!-- Disabled, this browser is not very secure
Temporarily enabled until an alternative browser is ready -->
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<data android:host="*.i2p" android:scheme="http" /> <data android:host="*.i2p" android:scheme="http" />
</intent-filter> </intent-filter>
-->
</activity> </activity>
<activity android:name=".SettingsActivity" <activity android:name=".SettingsActivity"
android:label="I2P Settings" android:label="I2P Settings"
......
...@@ -2,6 +2,8 @@ package net.i2p.android.router.addressbook; ...@@ -2,6 +2,8 @@ package net.i2p.android.router.addressbook;
import net.i2p.android.router.I2PActivityBase; import net.i2p.android.router.I2PActivityBase;
import net.i2p.android.router.R; import net.i2p.android.router.R;
import net.i2p.android.router.web.WebActivity;
import net.i2p.android.router.web.WebFragment;
import android.app.Activity; import android.app.Activity;
import android.app.SearchManager; import android.app.SearchManager;
import android.content.Context; import android.content.Context;
...@@ -103,8 +105,12 @@ public class AddressbookActivity extends I2PActivityBase ...@@ -103,8 +105,12 @@ public class AddressbookActivity extends I2PActivityBase
setResult(Activity.RESULT_OK, result); setResult(Activity.RESULT_OK, result);
finish(); finish();
} else { } else {
Intent i = new Intent(Intent.ACTION_VIEW); //Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse("http://" + host)); //i.setData(Uri.parse("http://" + host));
// XXX: Temporarily reverting to inbuilt browser
// until an alternative browser is ready.
Intent i = new Intent(this, WebActivity.class);
i.putExtra(WebFragment.HTML_URI, "http://" + host + '/');
startActivity(i); startActivity(i);
} }
} }
......
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