From 7d2d9f0cb3531acb9d0433a8e19ed64db329d64e Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Wed, 9 Aug 2017 07:25:11 -0500 Subject: ProfileActivity: Also remember editing state Signed-off-by: Jason A. Donenfeld --- .../com/wireguard/android/ProfileActivity.java | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/src/main/java/com/wireguard/android/ProfileActivity.java b/app/src/main/java/com/wireguard/android/ProfileActivity.java index 87cc6aa0..40b81d2b 100644 --- a/app/src/main/java/com/wireguard/android/ProfileActivity.java +++ b/app/src/main/java/com/wireguard/android/ProfileActivity.java @@ -1,5 +1,6 @@ package com.wireguard.android; +import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; @@ -9,12 +10,14 @@ import android.view.MenuItem; */ abstract class ProfileActivity extends ServiceClientActivity { + public static final String KEY_IS_EDITING = "is_editing"; public static final String KEY_PROFILE_NAME = "profile_name"; protected static final String TAG_DETAIL = "detail"; protected static final String TAG_LIST = "list"; protected static final String TAG_PLACEHOLDER = "placeholder"; private String currentProfile; + private boolean isEditing; public ProfileActivity() { super(ProfileService.class); @@ -24,14 +27,22 @@ abstract class ProfileActivity extends ServiceClientActivity