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

Commit d1be0b93 authored by sail's avatar sail Committed by Gerrit Code Review
Browse files

Merge "Fixed Dial fab changed to add to contact when multiwindow mode"

parents 5db64dc0 10c93827
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -627,7 +627,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
        int resId = view.getId();
        if (resId == R.id.floating_action_button) {
            if (mListsFragment.getCurrentTabIndex()
                    == ListsFragment.TAB_INDEX_ALL_CONTACTS && !mInRegularSearch) {
                    == ListsFragment.TAB_INDEX_ALL_CONTACTS && !mInRegularSearch &&
                    !mInDialpadSearch) {
                DialerUtils.startActivityWithErrorToast(
                        this,
                        IntentUtil.getNewContactIntent(),
@@ -1342,7 +1343,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
        updateMissedCalls();
        int tabIndex = mListsFragment.getCurrentTabIndex();
        mPreviouslySelectedTabIndex = tabIndex;
        if (tabIndex == ListsFragment.TAB_INDEX_ALL_CONTACTS) {
        if (tabIndex == ListsFragment.TAB_INDEX_ALL_CONTACTS &&
                !mInRegularSearch && !mInDialpadSearch) {
            mFloatingActionButtonController.changeIcon(
                    getResources().getDrawable(R.drawable.ic_person_add_24dp),
                    getResources().getString(R.string.search_shortcut_create_new_contact));