From 56d8996b1c68de3968e9fda2961a47c818537192 Mon Sep 17 00:00:00 2001 From: Stephen Bird Date: Mon, 21 Mar 2016 12:10:06 -0700 Subject: Remove FAB hiding and showing In AOSP the fab hides and shows at certain times based on what the user is doing (typing in search field or scrolling through results). There's a bug where sometimes the FAB does not come back. Just show the FAB all the time as our UI changes allow the fab to be visible when the keyboard is. Ticket: CD-442 Change-Id: I1939e213deaad0ea582e1dbe4b495fb9b710447e --- src/com/android/dialer/DialtactsActivity.java | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/com/android') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 283466e74..2e08dc6cf 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -1178,8 +1178,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mInDialpadSearch = smartDialSearch; mInRegularSearch = !smartDialSearch; - mFloatingActionButtonController.scaleOut(); - SearchFragment fragment = (SearchFragment) getFragmentManager().findFragmentByTag(tag); if (animate) { transaction.setCustomAnimations(android.R.animator.fade_in, 0); @@ -1191,15 +1189,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O fragment = new SmartDialSearchFragment(); } else { fragment = new RegularSearchFragment(); - fragment.setOnTouchListener(new View.OnTouchListener() { - @Override - public boolean onTouch(View v, MotionEvent event) { - // Show the FAB when the user touches the lists fragment and the soft - // keyboard is hidden. - showFabInSearchUi(); - return false; - } - }); } transaction.add(R.id.dialtacts_frame, fragment, tag); } else { -- cgit v1.2.3