From c9add00e9b719065c4889e8f00bae843e50ff924 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sat, 29 Jul 2017 06:39:37 -0500 Subject: ProfileList: Add a simple menu --- .../java/com/wireguard/android/ProfileListActivity.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'app/src/main/java/com/wireguard') 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; @@ -43,6 +45,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(); -- cgit v1.2.3