summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-04 12:24:18 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-04 12:24:18 -0500
commit81ab643d2bf17b7ac5c70efa6f33e0737969cf85 (patch)
treeac1c1c04bf6011e2d8f41e8519d212288bfe902a /app/src/main/res
parentd0bf3b6b320f2beea79fce284b02747617e5e291 (diff)
ProfileList: Convert to a fragment
This is required for a future two-fragment tablet layout, and simplifies the code a bit since the profile detail (view/edit) will be implemented as fragments anyway. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/profile_activity.xml6
-rw-r--r--app/src/main/res/layout/profile_list_fragment.xml (renamed from app/src/main/res/layout/profile_list_activity.xml)0
-rw-r--r--app/src/main/res/menu/main.xml (renamed from app/src/main/res/menu/profile_list.xml)0
3 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/res/layout/profile_activity.xml b/app/src/main/res/layout/profile_activity.xml
new file mode 100644
index 00000000..e408985d
--- /dev/null
+++ b/app/src/main/res/layout/profile_activity.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<fragment xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/profile_list_fragment"
+ android:name="com.wireguard.android.ProfileListFragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
diff --git a/app/src/main/res/layout/profile_list_activity.xml b/app/src/main/res/layout/profile_list_fragment.xml
index 29ce62e7..29ce62e7 100644
--- a/app/src/main/res/layout/profile_list_activity.xml
+++ b/app/src/main/res/layout/profile_list_fragment.xml
diff --git a/app/src/main/res/menu/profile_list.xml b/app/src/main/res/menu/main.xml
index 96479d08..96479d08 100644
--- a/app/src/main/res/menu/profile_list.xml
+++ b/app/src/main/res/menu/main.xml