Support different I2P Android package names

This commit is contained in:
str4d
2014-07-06 03:14:49 +00:00
parent 181c0804d0
commit 1b3d7159c4
2 changed files with 1 additions and 5 deletions

1
TODO
View File

@@ -1,5 +1,4 @@
Fixes:
- Search for any I2P Android app id (.router, .donate etc.)
- Figure out how to highlight email backgrounds when selected in list
- Refine view email page
-- Delete/read/unread/move actions that don't break everything

View File

@@ -270,8 +270,6 @@ public class EmailListActivity extends ActionBarActivity implements
prefs.getString("i2pbote.router.use", "internal").equals("android")) {
// Try to bind to I2P Android
Intent i2pIntent = new Intent(IRouterState.class.getName());
i2pIntent.setClassName("net.i2p.android.router",
"net.i2p.android.router.service.RouterService");
try {
mTriedBindState = bindService(
i2pIntent, mStateConnection, BIND_AUTO_CREATE);
@@ -329,8 +327,7 @@ public class EmailListActivity extends ActionBarActivity implements
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
Intent i = new Intent("net.i2p.android.router");
i.setAction("net.i2p.android.router.START_I2P");
Intent i = new Intent("net.i2p.android.router.START_I2P");
EmailListActivity.this.startActivityForResult(i, REQUEST_START_I2P);
}
})