ProfileEdit: Add empty activity/fragment
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
671aae7489
commit
c199827b58
@ -16,6 +16,9 @@
|
|||||||
android:name=".ProfileDetailActivity"
|
android:name=".ProfileDetailActivity"
|
||||||
android:label=""
|
android:label=""
|
||||||
android:parentActivityName=".ProfileListActivity" />
|
android:parentActivityName=".ProfileListActivity" />
|
||||||
|
<activity
|
||||||
|
android:name=".ProfileEditActivity"
|
||||||
|
android:label="@string/edit_activity_title" />
|
||||||
<activity android:name=".ProfileListActivity">
|
<activity android:name=".ProfileListActivity">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
@ -13,6 +13,7 @@ abstract class ProfileActivity extends ServiceClientActivity<ProfileServiceInter
|
|||||||
public static final String KEY_IS_EDITING = "is_editing";
|
public static final String KEY_IS_EDITING = "is_editing";
|
||||||
public static final String KEY_PROFILE_NAME = "profile_name";
|
public static final String KEY_PROFILE_NAME = "profile_name";
|
||||||
protected static final String TAG_DETAIL = "detail";
|
protected static final String TAG_DETAIL = "detail";
|
||||||
|
protected static final String TAG_EDIT = "edit";
|
||||||
protected static final String TAG_LIST = "list";
|
protected static final String TAG_LIST = "list";
|
||||||
protected static final String TAG_PLACEHOLDER = "placeholder";
|
protected static final String TAG_PLACEHOLDER = "placeholder";
|
||||||
|
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.wireguard.android;
|
||||||
|
|
||||||
|
import android.view.MenuItem;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Activity that allows editing a single WireGuard profile.
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class ProfileEditActivity extends ProfileActivity {
|
||||||
|
@Override
|
||||||
|
public void onMenuEdit(MenuItem item) {
|
||||||
|
throw new IllegalStateException();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onMenuSave(MenuItem item) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.wireguard.android;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fragment for editing a WireGuard profile.
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class ProfileEditFragment extends ProfileFragment {
|
||||||
|
}
|
@ -4,6 +4,7 @@
|
|||||||
<string name="connected">Connected</string>
|
<string name="connected">Connected</string>
|
||||||
<string name="disconnected">Disconnected</string>
|
<string name="disconnected">Disconnected</string>
|
||||||
<string name="edit">Edit</string>
|
<string name="edit">Edit</string>
|
||||||
|
<string name="edit_activity_title">Edit WireGuard Profile</string>
|
||||||
<string name="placeholder_text">No profile selected</string>
|
<string name="placeholder_text">No profile selected</string>
|
||||||
<string name="profile_name">Profile name</string>
|
<string name="profile_name">Profile name</string>
|
||||||
<string name="public_key">Public key</string>
|
<string name="public_key">Public key</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user