Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 128f7d80 authored by Wenyi Wang's avatar Wenyi Wang
Browse files

Don't always show FAB after stopping search or selection

Bug 28505361
Bug 29905068

Change-Id: I4f32ac6db89032f39b50c1904dd1a7468dc56b0d
parent 90f625d8
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -541,13 +541,13 @@ public class PeopleActivity extends ContactsDrawerActivity implements
                startSearchOrSelectionMode();
                startSearchOrSelectionMode();
                break;
                break;
            case ActionBarAdapter.Listener.Action.BEGIN_STOPPING_SEARCH_AND_SELECTION_MODE:
            case ActionBarAdapter.Listener.Action.BEGIN_STOPPING_SEARCH_AND_SELECTION_MODE:
                showFabWithAnimation(/* showFabWithAnimation = */ true);
                showFabWithAnimation(shouldShowFabForAccount());
                break;
                break;
            case ActionBarAdapter.Listener.Action.STOP_SEARCH_AND_SELECTION_MODE:
            case ActionBarAdapter.Listener.Action.STOP_SEARCH_AND_SELECTION_MODE:
                setQueryTextToFragment("");
                setQueryTextToFragment("");
                updateFragmentsVisibility();
                updateFragmentsVisibility();
                invalidateOptionsMenu();
                invalidateOptionsMenu();
                showFabWithAnimation(/* showFabWithAnimation = */ true);
                showFabWithAnimation(shouldShowFabForAccount());
                break;
                break;
            case ActionBarAdapter.Listener.Action.CHANGE_SEARCH_QUERY:
            case ActionBarAdapter.Listener.Action.CHANGE_SEARCH_QUERY:
                final String queryString = mActionBarAdapter.getQueryString();
                final String queryString = mActionBarAdapter.getQueryString();
@@ -564,7 +564,7 @@ public class PeopleActivity extends ContactsDrawerActivity implements
        configureFragments(false /* from request */);
        configureFragments(false /* from request */);
        updateFragmentsVisibility();
        updateFragmentsVisibility();
        invalidateOptionsMenu();
        invalidateOptionsMenu();
        showFabWithAnimation(/* showFabWithAnimation = */ false);
        showFabWithAnimation(/* showFab */ false);
    }
    }


    @Override
    @Override