Renamed onPostUpdate to onPostUpdateListener

This commit is contained in:
Pierre 2018-04-12 11:43:47 +02:00
parent 5112ece748
commit 281821333c
5 changed files with 11 additions and 13 deletions

View File

@ -43,10 +43,8 @@ import org.communiquons.android.comunic.client.ui.fragments.UserPageFragment;
* *
* @author Pierre HUBERT * @author Pierre HUBERT
*/ */
public class MainActivity extends AppCompatActivity public class MainActivity extends AppCompatActivity implements openConversationListener,
implements openConversationListener, updateConversationListener, onOpenUsersPageListener {
updateConversationListener,
onOpenUsersPageListener {
/** /**
* Debug tag * Debug tag

View File

@ -13,7 +13,7 @@ import org.communiquons.android.comunic.client.R;
import org.communiquons.android.comunic.client.data.helpers.ImageLoadHelper; import org.communiquons.android.comunic.client.data.helpers.ImageLoadHelper;
import org.communiquons.android.comunic.client.data.models.UserInfo; import org.communiquons.android.comunic.client.data.models.UserInfo;
import org.communiquons.android.comunic.client.data.models.Comment; import org.communiquons.android.comunic.client.data.models.Comment;
import org.communiquons.android.comunic.client.ui.listeners.onPostUpdate; import org.communiquons.android.comunic.client.ui.listeners.onPostUpdateListener;
import org.communiquons.android.comunic.client.ui.utils.UiUtils; import org.communiquons.android.comunic.client.ui.utils.UiUtils;
import org.communiquons.android.comunic.client.ui.views.LikeButtonView; import org.communiquons.android.comunic.client.ui.views.LikeButtonView;
@ -49,7 +49,7 @@ class CommentsAdapter extends ArrayAdapter<Comment> {
* @return Generated view * @return Generated view
*/ */
static View getInflatedView(Context context, Comment comment, static View getInflatedView(Context context, Comment comment,
onPostUpdate listener, onPostUpdateListener listener,
@Nullable UserInfo user, ViewGroup viewGroup){ @Nullable UserInfo user, ViewGroup viewGroup){
//Inflate a view //Inflate a view
@ -71,7 +71,7 @@ class CommentsAdapter extends ArrayAdapter<Comment> {
* @return Updated view * @return Updated view
*/ */
private static View fillView(final Context context, final View view, final Comment comment, private static View fillView(final Context context, final View view, final Comment comment,
@Nullable UserInfo user, final onPostUpdate listener) { @Nullable UserInfo user, final onPostUpdateListener listener) {
//Update user name and account image //Update user name and account image
ImageView accountImage = view.findViewById(R.id.user_account_image); ImageView accountImage = view.findViewById(R.id.user_account_image);

View File

@ -19,7 +19,7 @@ import org.communiquons.android.comunic.client.data.models.Comment;
import org.communiquons.android.comunic.client.data.models.Post; import org.communiquons.android.comunic.client.data.models.Post;
import org.communiquons.android.comunic.client.data.enums.PostTypes; import org.communiquons.android.comunic.client.data.enums.PostTypes;
import org.communiquons.android.comunic.client.data.arrays.PostsList; import org.communiquons.android.comunic.client.data.arrays.PostsList;
import org.communiquons.android.comunic.client.ui.listeners.onPostUpdate; import org.communiquons.android.comunic.client.ui.listeners.onPostUpdateListener;
import org.communiquons.android.comunic.client.ui.utils.UiUtils; import org.communiquons.android.comunic.client.ui.utils.UiUtils;
import org.communiquons.android.comunic.client.data.utils.Utilities; import org.communiquons.android.comunic.client.data.utils.Utilities;
import org.communiquons.android.comunic.client.ui.views.EditCommentContentView; import org.communiquons.android.comunic.client.ui.views.EditCommentContentView;
@ -54,7 +54,7 @@ public class PostsAdapter extends ArrayAdapter<Post>{
/** /**
* Actions update listener * Actions update listener
*/ */
private onPostUpdate mListener; private onPostUpdateListener mListener;
/** /**
* Create the Post Adapter * Create the Post Adapter
@ -66,7 +66,7 @@ public class PostsAdapter extends ArrayAdapter<Post>{
* for example * for example
*/ */
public PostsAdapter(Context context, PostsList list, ArrayMap<Integer, UserInfo> usersInfos, public PostsAdapter(Context context, PostsList list, ArrayMap<Integer, UserInfo> usersInfos,
onPostUpdate listener){ onPostUpdateListener listener){
super(context, 0, list); super(context, 0, list);
//Save the users info object //Save the users info object

View File

@ -32,7 +32,7 @@ import org.communiquons.android.comunic.client.data.helpers.PostsHelper;
import org.communiquons.android.comunic.client.data.arrays.PostsList; import org.communiquons.android.comunic.client.data.arrays.PostsList;
import org.communiquons.android.comunic.client.data.utils.StringsUtils; import org.communiquons.android.comunic.client.data.utils.StringsUtils;
import org.communiquons.android.comunic.client.ui.adapters.PostsAdapter; import org.communiquons.android.comunic.client.ui.adapters.PostsAdapter;
import org.communiquons.android.comunic.client.ui.listeners.onPostUpdate; import org.communiquons.android.comunic.client.ui.listeners.onPostUpdateListener;
import org.communiquons.android.comunic.client.ui.views.EditCommentContentView; import org.communiquons.android.comunic.client.ui.views.EditCommentContentView;
import java.util.ArrayList; import java.util.ArrayList;
@ -47,7 +47,7 @@ import java.util.ArrayList;
*/ */
public class PostsListFragment extends Fragment public class PostsListFragment extends Fragment
implements onPostUpdate { implements onPostUpdateListener {
/** /**
* Menu action : no action * Menu action : no action

View File

@ -12,7 +12,7 @@ import org.communiquons.android.comunic.client.ui.views.EditCommentContentView;
* *
* @author Pierre HUBERT * @author Pierre HUBERT
*/ */
public interface onPostUpdate { public interface onPostUpdateListener {
/** /**
* This method is called when a comment creation request is made * This method is called when a comment creation request is made