diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/shoutbox/ShoutboxFragment.java b/app/src/main/java/gr/thmmy/mthmmy/activities/shoutbox/ShoutboxFragment.java index 12d5f5eb..a24b9155 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/shoutbox/ShoutboxFragment.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/shoutbox/ShoutboxFragment.java @@ -107,7 +107,7 @@ public class ShoutboxFragment extends Fragment { shoutAdapter.notifyDataSetChanged(); } }); - shoutboxViewModel.setOnShoutboxTaskStarted(this::onShoutboxTaskSarted); + shoutboxViewModel.setOnShoutboxTaskStarted(this::onShoutboxTaskStarted); shoutboxViewModel.setOnShoutboxTaskFinished(this::onShoutboxTaskFinished); shoutboxViewModel.setOnSendShoutTaskStarted(this::onSendShoutTaskStarted); shoutboxViewModel.setOnSendShoutTaskFinished(this::onSendShoutTaskFinished); @@ -115,9 +115,10 @@ public class ShoutboxFragment extends Fragment { shoutboxViewModel.loadShoutbox(false); } - private void onShoutboxTaskSarted() { + private void onShoutboxTaskStarted() { Timber.i("Starting shoutbox task..."); progressBar.setVisibility(View.VISIBLE); + editorView.setVisibility(View.GONE); } private void onSendShoutTaskStarted() { diff --git a/app/src/main/res/layout/fragment_shoutbox.xml b/app/src/main/res/layout/fragment_shoutbox.xml index ae0e8133..7b2d51e7 100644 --- a/app/src/main/res/layout/fragment_shoutbox.xml +++ b/app/src/main/res/layout/fragment_shoutbox.xml @@ -30,7 +30,7 @@ android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:paddingTop="8dp" - android:visibility="gone"/> + android:visibility="visible"/>