diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml
index 0677e45db..2feaa4e95 100644
--- a/.idea/codeStyleSettings.xml
+++ b/.idea/codeStyleSettings.xml
@@ -37,6 +37,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/briar-android-tests/src/test/java/org/briarproject/BlogManagerTest.java b/briar-android-tests/src/test/java/org/briarproject/BlogManagerTest.java
index e2893714d..3bfaae9a2 100644
--- a/briar-android-tests/src/test/java/org/briarproject/BlogManagerTest.java
+++ b/briar-android-tests/src/test/java/org/briarproject/BlogManagerTest.java
@@ -32,7 +32,6 @@ import org.briarproject.lifecycle.LifecycleModule;
import org.briarproject.properties.PropertiesModule;
import org.briarproject.sync.SyncModule;
import org.briarproject.transport.TransportModule;
-import org.briarproject.util.StringUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
@@ -60,7 +59,6 @@ import static org.briarproject.api.sync.ValidationManager.State.DELIVERED;
import static org.briarproject.api.sync.ValidationManager.State.INVALID;
import static org.briarproject.api.sync.ValidationManager.State.PENDING;
import static org.briarproject.api.sync.ValidationManager.State.VALID;
-import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@@ -193,8 +191,7 @@ public class BlogManagerTest {
assertEquals(1, headers0.size());
// check that body is there
- assertArrayEquals(StringUtils.toUtf8(body),
- blogManager0.getPostBody(p.getMessage().getId()));
+ assertEquals(body, blogManager0.getPostBody(p.getMessage().getId()));
// make sure that blog0 at author1 doesn't have the post yet
Collection headers1 =
@@ -211,8 +208,7 @@ public class BlogManagerTest {
assertEquals(POST, headers1.iterator().next().getType());
// check that body is there
- assertArrayEquals(StringUtils.toUtf8(body),
- blogManager1.getPostBody(p.getMessage().getId()));
+ assertEquals(body, blogManager1.getPostBody(p.getMessage().getId()));
stopLifecycles();
}
@@ -334,8 +330,7 @@ public class BlogManagerTest {
assertEquals(author0, h.getParent().getAuthor());
// ensure that body can be retrieved from wrapped post
- assertArrayEquals(StringUtils.toUtf8(body),
- blogManager0.getPostBody(h.getParentId()));
+ assertEquals(body, blogManager0.getPostBody(h.getParentId()));
// 1 has only their own comment in their blog
headers1 = blogManager1.getPostHeaders(blog1.getId());
@@ -375,6 +370,13 @@ public class BlogManagerTest {
Collection headers1 =
blogManager1.getPostHeaders(blog0.getId());
assertEquals(2, headers1.size());
+ for (BlogPostHeader h : headers1) {
+ if (h.getType() == POST) {
+ assertEquals(body, blogManager1.getPostBody(h.getId()));
+ } else {
+ assertEquals(comment, ((BlogCommentHeader)h).getComment());
+ }
+ }
stopLifecycles();
}
diff --git a/briar-android/AndroidManifest.xml b/briar-android/AndroidManifest.xml
index 0ce2865ec..5da35cdf4 100644
--- a/briar-android/AndroidManifest.xml
+++ b/briar-android/AndroidManifest.xml
@@ -211,6 +211,17 @@
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/briar-android/res/drawable/ic_our_identity_black.xml b/briar-android/res/drawable/ic_our_identity_black.xml
new file mode 100644
index 000000000..af997ec0c
--- /dev/null
+++ b/briar-android/res/drawable/ic_our_identity_black.xml
@@ -0,0 +1,10 @@
+
+
+
diff --git a/briar-android/res/layout/activity_introduction.xml b/briar-android/res/layout/activity_fragment_container.xml
similarity index 82%
rename from briar-android/res/layout/activity_introduction.xml
rename to briar-android/res/layout/activity_fragment_container.xml
index f351897d0..e6c20760f 100644
--- a/briar-android/res/layout/activity_introduction.xml
+++ b/briar-android/res/layout/activity_fragment_container.xml
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/briar-android/res/layout/author_view.xml b/briar-android/res/layout/author_view.xml
new file mode 100644
index 000000000..405376fac
--- /dev/null
+++ b/briar-android/res/layout/author_view.xml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/briar-android/res/layout/fragment_reblog.xml b/briar-android/res/layout/fragment_reblog.xml
new file mode 100644
index 000000000..b17143b35
--- /dev/null
+++ b/briar-android/res/layout/fragment_reblog.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/briar-android/res/layout/list_item_blog_comment.xml b/briar-android/res/layout/list_item_blog_comment.xml
new file mode 100644
index 000000000..bdbe42842
--- /dev/null
+++ b/briar-android/res/layout/list_item_blog_comment.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/briar-android/res/layout/list_item_blog_post.xml b/briar-android/res/layout/list_item_blog_post.xml
index 0f7e1d532..4697c461b 100644
--- a/briar-android/res/layout/list_item_blog_post.xml
+++ b/briar-android/res/layout/list_item_blog_post.xml
@@ -1,118 +1,78 @@
-
+ android:layout_height="wrap_content">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ android:orientation="vertical">
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/briar-android/res/menu/blogs_blog_actions.xml b/briar-android/res/menu/blogs_blog_actions.xml
index 3661a49df..64b42ac86 100644
--- a/briar-android/res/menu/blogs_blog_actions.xml
+++ b/briar-android/res/menu/blogs_blog_actions.xml
@@ -1,7 +1,16 @@
\ No newline at end of file
diff --git a/briar-android/res/menu/blogs_my_blog_actions.xml b/briar-android/res/menu/blogs_my_blog_actions.xml
deleted file mode 100644
index 5c9052edb..000000000
--- a/briar-android/res/menu/blogs_my_blog_actions.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
\ No newline at end of file
diff --git a/briar-android/res/values/attrs.xml b/briar-android/res/values/attrs.xml
index 0de786b4b..a09b80b32 100644
--- a/briar-android/res/values/attrs.xml
+++ b/briar-android/res/values/attrs.xml
@@ -1,8 +1,17 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/briar-android/res/values/dimens.xml b/briar-android/res/values/dimens.xml
index 7c676e61a..9f62ff094 100644
--- a/briar-android/res/values/dimens.xml
+++ b/briar-android/res/values/dimens.xml
@@ -43,4 +43,8 @@
24dp20dp
+ 30dp
+ 15dp
+ 20dp
+
diff --git a/briar-android/res/values/strings.xml b/briar-android/res/values/strings.xml
index dc399cd7e..ba764c356 100644
--- a/briar-android/res/values/strings.xml
+++ b/briar-android/res/values/strings.xml
@@ -35,7 +35,7 @@
Close the navigation drawerContactsForums
- Micro Blogs
+ BlogsSettingsSign Out
@@ -207,7 +207,6 @@
A short description of your new blogPotential readers may or may not subscribe to your blog based on the content of the description.You don\'t have any blogs.\n\nWhy don\'t you create one now by clicking the plus in the top right screen corner?
- This is the place for content of your blog.\n\nIt seems like you haven\'t written anything yet.\n\nPlease tap the pen icon to compose a new blog post.\n\nDon\'t forget to go public and share your blog.Blog createdThis blog is emptyThis blog is currently empty.\n\nEither the author hasn\'t written anything yet, or the person who shared this blog with you needs to come online, so posts can be synchronized.
@@ -227,6 +226,8 @@
Are you sure that you want to remove this blog and all posts?\nNote that this will not remove the blog from other people\'s devices.Remove BlogBlog Removed
+ Add an optional comment
+ ReblogBlog ListAvailable Blogs
diff --git a/briar-android/res/values/styles.xml b/briar-android/res/values/styles.xml
index 98751d04c..76c9c0a1f 100644
--- a/briar-android/res/values/styles.xml
+++ b/briar-android/res/values/styles.xml
@@ -124,6 +124,11 @@
@color/briar_text_primary_inverse
+
+