Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit adc28e0

Browse files
jainkuniyakunall17
authored andcommitted
Better handling of floating recipient bar.
When chatbox is swiped do nothing. Fix:#490
1 parent 559b328 commit adc28e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/com/zulip/android/util/RemoveViewsOnScroll.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@ public void onAnimationRepeat(Animator animator) {
128128
public void showView(final View view) {
129129
mIsShowing = true;
130130
float translationY = toolbarHeight;
131-
if ((view.getId() == R.id.appBarLayout || view instanceof FloatingActionButton)) {
131+
if (view.getId() == R.id.appBarLayout) {
132132
ZulipApp.get().getZulipActivity().onShowActionBar();
133133
translationY = 0;
134+
} else if (view instanceof FloatingActionButton) {
135+
translationY = 0;
134136
}
135137
ViewPropertyAnimator animator = view.animate()
136138
.translationY(translationY)

0 commit comments

Comments
 (0)