Browse Source
shoutbox bug fix (#69)
* fix bug where changing the orientation while guest would make
EditorView visible
* +8dp shoutbox EditorView margin bottom
pull/70/head
oogee
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
2 deletions
-
app/src/main/java/gr/thmmy/mthmmy/activities/shoutbox/ShoutboxFragment.java
-
app/src/main/java/gr/thmmy/mthmmy/activities/shoutbox/ShoutboxTask.java
-
app/src/main/res/layout/fragment_shoutbox.xml
|
|
@ -105,6 +105,7 @@ public class ShoutboxFragment extends Fragment { |
|
|
|
Timber.i("Shoutbox loaded successfully"); |
|
|
|
shoutAdapter.setShouts(shoutbox.getShouts()); |
|
|
|
shoutAdapter.notifyDataSetChanged(); |
|
|
|
editorView.setVisibility(shoutbox.getShoutSend() == null ? View.GONE : View.VISIBLE); |
|
|
|
} |
|
|
|
}); |
|
|
|
shoutboxViewModel.setOnShoutboxTaskStarted(this::onShoutboxTaskStarted); |
|
|
|
|
|
@ -45,7 +45,7 @@ public class ShoutboxTask extends NewParseTask<Shoutbox> { |
|
|
|
String formUrl = shoutboxForm.attr("action"); |
|
|
|
String sc = shoutboxForm.select("input[name=sc]").first().attr("value"); |
|
|
|
String shoutName = shoutboxForm.select("input[name=tp-shout-name]").first().attr("value"); |
|
|
|
// TODO: make shout send nullable and disable shouting
|
|
|
|
|
|
|
|
Element shoutSendInput = shoutboxForm.select("input[name=shout_send]").first(); |
|
|
|
String shoutSend = null; |
|
|
|
if (shoutSendInput != null) |
|
|
|
|
|
@ -29,8 +29,9 @@ |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginStart="8dp" |
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
android:layout_marginBottom="8dp" |
|
|
|
android:paddingTop="8dp" |
|
|
|
android:visibility="visible"/> |
|
|
|
android:visibility="gone"/> |
|
|
|
|
|
|
|
<gr.thmmy.mthmmy.views.editorview.EmojiKeyboard |
|
|
|
android:id="@+id/emoji_keyboard" |
|
|
|