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

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

Added help link to tunnel list overflow menu

parent c60e4f6b
No related branches found
No related tags found
No related merge requests found
......@@ -14,5 +14,8 @@
<item android:id="@+id/action_restart_all_tunnels"
android:title="@string/action_i2ptunnel_restart_all"
i2pandroid:showAsAction="never" />
<item android:id="@+id/action_i2ptunnel_help"
android:title="@string/menu_help"
i2pandroid:showAsAction="never" />
</menu>
......@@ -7,6 +7,7 @@ import net.i2p.android.i2ptunnel.fragment.TunnelListFragment.OnTunnelSelectedLis
import net.i2p.android.i2ptunnel.loader.TunnelEntry;
import net.i2p.android.i2ptunnel.util.TunnelUtil;
import net.i2p.android.router.R;
import net.i2p.android.router.activity.HelpActivity;
import net.i2p.i2ptunnel.TunnelControllerGroup;
import android.app.Activity;
import android.app.AlertDialog;
......@@ -155,6 +156,12 @@ public class TunnelDetailFragment extends Fragment {
}
};
dg.show(getFragmentManager(), "delete_tunnel_dialog");
return true;
case R.id.action_i2ptunnel_help:
Intent hi = new Intent(getActivity(), HelpActivity.class);
hi.putExtra(HelpActivity.REFERRER, "i2ptunnel");
startActivity(hi);
return true;
default:
return super.onOptionsItemSelected(item);
}
......
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