summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-07-29 06:39:37 -0500
committerSamuel Holland <samuel@sholland.org>2017-07-29 06:39:37 -0500
commit84e19d6c72f0b6241650de9344b258350dff257e (patch)
tree1f3a5c82d7d090f0b2011d4a3709e910b69510cc /app/src/main/java
parent411b0716f2747b6607c7394f5871a2f19824da8d (diff)
ProfileList: Add a simple menu
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/wireguard/android/ProfileListActivity.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/ProfileListActivity.java b/app/src/main/java/com/wireguard/android/ProfileListActivity.java
index f56092e8..2b0946a9 100644
--- a/app/src/main/java/com/wireguard/android/ProfileListActivity.java
+++ b/app/src/main/java/com/wireguard/android/ProfileListActivity.java
@@ -8,6 +8,8 @@ import android.content.ServiceConnection;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.os.IBinder;
+import android.view.Menu;
+import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
@@ -44,6 +46,20 @@ public class ProfileListActivity extends Activity {
}
@Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ getMenuInflater().inflate(R.menu.profile_list, menu);
+ return true;
+ }
+
+ public void onMenuNewAction(MenuItem item) {
+
+ }
+
+ public void onMenuSettings(MenuItem item) {
+
+ }
+
+ @Override
public void onStart() {
super.onStart();
Intent intent = new Intent(this, ProfileService.class);