From 797b0ae09bff35f3d07a4df82a12a79c4e44a435 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 26 Feb 2019 08:05:43 +0100 Subject: [PATCH] Fix issue that prevented to create posts on user page --- .../comunic/client/ui/fragments/PostsCreateFormFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/PostsCreateFormFragment.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/PostsCreateFormFragment.java index c7a611c..b00e4ba 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/PostsCreateFormFragment.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/PostsCreateFormFragment.java @@ -251,12 +251,15 @@ public class PostsCreateFormFragment extends Fragment { CreatePost post = new CreatePost(); //Determine the type and the ID of the page + assert getArguments() != null; switch (getArguments().getInt(PAGE_TYPE_ARG)){ case PAGE_TYPE_USER: post.setPage_type(PageType.USER_PAGE); + break; case PAGE_TYPE_GROUP: post.setPage_type(PageType.GROUP_PAGE); + break; } post.setPage_id(getArguments().getInt(PAGE_ID_ARG));