summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/menu/client_dashboard.xml1
-rw-r--r--src/se/leap/leapclient/Dashboard.java11
2 files changed, 12 insertions, 0 deletions
diff --git a/res/menu/client_dashboard.xml b/res/menu/client_dashboard.xml
index cafeb15e..87e7ae62 100644
--- a/res/menu/client_dashboard.xml
+++ b/res/menu/client_dashboard.xml
@@ -5,6 +5,7 @@
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/menu_settings"/>
+ <item android:id="@+id/about_leap" android:title="@string/about" android:orderInCategory="110" />
<item android:id="@+id/legacy_interface" android:title="ICS OpenVPN Interface" android:orderInCategory="500" />
</menu> \ No newline at end of file
diff --git a/src/se/leap/leapclient/Dashboard.java b/src/se/leap/leapclient/Dashboard.java
index 50c267b3..3e8f35a4 100644
--- a/src/se/leap/leapclient/Dashboard.java
+++ b/src/se/leap/leapclient/Dashboard.java
@@ -57,6 +57,17 @@ public class Dashboard extends Activity {
Intent intent;
// Handle item selection
switch (item.getItemId()){
+ case R.id.about_leap:
+ // TODO move se.leap.openvpn.AboutFragment into our package
+ Fragment aboutFragment = new AboutFragment();
+ FragmentTransaction trans = getFragmentManager().beginTransaction();
+ trans.replace(R.id.dashboardLayout, aboutFragment);
+ trans.addToBackStack(null);
+ trans.commit();
+
+ //intent = new Intent(this,AboutFragment.class);
+ //startActivity(intent);
+ return true;
case R.id.legacy_interface:
// TODO call se.leap.openvpn.MainActivity
intent = new Intent(this,MainActivity.class);