diff options
author | Stephen Bird <sbird@cyngn.com> | 2016-04-20 15:23:51 -0700 |
---|---|---|
committer | Stephen Bird <sbird@cyngn.com> | 2016-04-21 11:24:33 -0700 |
commit | 9e8223e417c84266a804ee377921b3479bb873e5 (patch) | |
tree | e5250a48b3ce9496fd691830d82c1c37b775a5e3 /src/com | |
parent | fcd9f778a1435cab36408b0aba42175d6376c94d (diff) | |
download | android_packages_apps_Dialer-9e8223e417c84266a804ee377921b3479bb873e5.tar.gz android_packages_apps_Dialer-9e8223e417c84266a804ee377921b3479bb873e5.tar.bz2 android_packages_apps_Dialer-9e8223e417c84266a804ee377921b3479bb873e5.zip |
Search: Show FAB in the right place
Previously, the fab would appear and dissapear whenever the user
performed certain actions. Sometimes, the fab was in the wrong place
as well.
Change-Id: I9f3559e646f8154cf48e9c7e3386063970db8e40
Ticket: CD-552
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 81c6bbeac..2ccb8cc84 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -503,9 +503,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O if (TextUtils.isEmpty(mSearchView.getText().toString())) { // If the search term is empty, close the search UI. maybeExitSearchUi(); - } else { - // If the search term is not empty, show the dialpad fab. - showFabInSearchUi(); } } return false; @@ -564,10 +561,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } @Override - public void onSearchViewClicked() { - // Hide FAB, as the keyboard is shown. - mFloatingActionButtonController.scaleOut(); - } + public void onSearchViewClicked() {} }); mIsLandscape = getResources().getConfiguration().orientation @@ -1215,6 +1209,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O if (animate) { mListsFragment.getView().animate().alpha(0).withLayer(); } + moveFabInSearchUI(); mListsFragment.setUserVisibleHint(false); } |