From 6801fa0dadc2e0c83855f40e6631d5f35e29eb7b Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 10 Aug 2017 01:04:46 -0500 Subject: ProfileActivity: Do menus correctly --- .../com/wireguard/android/ProfileActivity.java | 8 ----- .../wireguard/android/ProfileDetailActivity.java | 24 ++++++++----- .../com/wireguard/android/ProfileEditActivity.java | 21 +++++++---- .../com/wireguard/android/ProfileListActivity.java | 42 ++++++++++++++-------- app/src/main/res/menu/main.xml | 4 +-- app/src/main/res/menu/profile_detail.xml | 2 +- app/src/main/res/menu/profile_detail_edit.xml | 9 ----- app/src/main/res/menu/profile_edit.xml | 9 +++++ 8 files changed, 68 insertions(+), 51 deletions(-) delete mode 100644 app/src/main/res/menu/profile_detail_edit.xml create mode 100644 app/src/main/res/menu/profile_edit.xml 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_detail_edit.xml deleted file mode 100644 index ad97fcbf..00000000 --- a/app/src/main/res/menu/profile_detail_edit.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/app/src/main/res/menu/profile_edit.xml b/app/src/main/res/menu/profile_edit.xml new file mode 100644 index 00000000..44e719c7 --- /dev/null +++ b/app/src/main/res/menu/profile_edit.xml @@ -0,0 +1,9 @@ + + + + -- cgit v1.2.3