From 87d3200b29d43ec5ee93de18d016c483cb3cb239 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 10 Aug 2017 01:04:46 -0500 Subject: [PATCH] ProfileActivity: Do menus correctly Signed-off-by: Jason A. Donenfeld --- .../wireguard/android/ProfileActivity.java | 8 ---- .../android/ProfileDetailActivity.java | 24 +++++++---- .../android/ProfileEditActivity.java | 21 ++++++---- .../android/ProfileListActivity.java | 42 ++++++++++++------- app/src/main/res/menu/main.xml | 4 +- app/src/main/res/menu/profile_detail.xml | 2 +- ...ofile_detail_edit.xml => profile_edit.xml} | 2 +- 7 files changed, 60 insertions(+), 43 deletions(-) rename app/src/main/res/menu/{profile_detail_edit.xml => profile_edit.xml} (87%) diff --git a/app/src/main/java/com/wireguard/android/ProfileActivity.java b/app/src/main/java/com/wireguard/android/ProfileActivity.java index 49502d07..29d249d4 100644 --- a/app/src/main/java/com/wireguard/android/ProfileActivity.java +++ b/app/src/main/java/com/wireguard/android/ProfileActivity.java @@ -52,14 +52,6 @@ abstract class ProfileActivity extends ServiceClientActivity + android:title="@string/settings" /> diff --git a/app/src/main/res/menu/profile_detail.xml b/app/src/main/res/menu/profile_detail.xml index 499adcdb..c00c1603 100644 --- a/app/src/main/res/menu/profile_detail.xml +++ b/app/src/main/res/menu/profile_detail.xml @@ -1,9 +1,9 @@ diff --git a/app/src/main/res/menu/profile_detail_edit.xml b/app/src/main/res/menu/profile_edit.xml similarity index 87% rename from app/src/main/res/menu/profile_detail_edit.xml rename to app/src/main/res/menu/profile_edit.xml index ad97fcbf..44e719c7 100644 --- a/app/src/main/res/menu/profile_detail_edit.xml +++ b/app/src/main/res/menu/profile_edit.xml @@ -1,9 +1,9 @@