From 8a91d64cda59bc4aa8afaf78140bb2741b1bdd9a Mon Sep 17 00:00:00 2001 From: Moez Bhatti Date: Mon, 9 Apr 2018 18:24:52 -0400 Subject: [PATCH] Fix messages showing up under compose bar in QkReply --- .../java/feature/qkreply/QkReplyActivity.kt | 5 +++- .../drawable/rounded_rectangle_bottom_4dp.xml | 29 +++++++++++++++++++ .../src/main/res/layout/qkreply_activity.xml | 23 +++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100755 presentation/src/main/res/drawable/rounded_rectangle_bottom_4dp.xml diff --git a/presentation/src/main/java/feature/qkreply/QkReplyActivity.kt b/presentation/src/main/java/feature/qkreply/QkReplyActivity.kt index 4d1681c1..cb2d1409 100644 --- a/presentation/src/main/java/feature/qkreply/QkReplyActivity.kt +++ b/presentation/src/main/java/feature/qkreply/QkReplyActivity.kt @@ -69,8 +69,11 @@ class QkReplyActivity : QkThemedActivity(), QkReplyView { viewModel.bindView(this) colors.composeBackground + .doOnNext { color -> background.setBackgroundTint(color) } + .doOnNext { color -> composeBackground.setBackgroundTint(color) } + .doOnNext { color -> composeBackgroundGradient.setBackgroundTint(color) } .autoDisposable(scope()) - .subscribe { color -> background.setBackgroundTint(color) } + .subscribe() colors.bubble .autoDisposable(scope()) diff --git a/presentation/src/main/res/drawable/rounded_rectangle_bottom_4dp.xml b/presentation/src/main/res/drawable/rounded_rectangle_bottom_4dp.xml new file mode 100755 index 00000000..4c52f25e --- /dev/null +++ b/presentation/src/main/res/drawable/rounded_rectangle_bottom_4dp.xml @@ -0,0 +1,29 @@ + + + + + + + + + + \ No newline at end of file diff --git a/presentation/src/main/res/layout/qkreply_activity.xml b/presentation/src/main/res/layout/qkreply_activity.xml index cf6f3661..b67355ce 100644 --- a/presentation/src/main/res/layout/qkreply_activity.xml +++ b/presentation/src/main/res/layout/qkreply_activity.xml @@ -47,6 +47,29 @@ app:layout_constraintTop_toBottomOf="@id/toolbar" tools:listitem="@layout/message_list_item_in" /> + + + +