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

Commit 3ed80a35 authored by Yorke Lee's avatar Yorke Lee
Browse files

Fix relayout requests when dragging

Also removed unneeded legacy code that shows the keyboard when
the search view is focused. The framework does that automatically for
us, and this code was causing problems by popping up the keyboard
whenever you dragged a contact over the search view.

Also turned off debug flag.

Bug: 10965693
Change-Id: I2fb9cedecd2a78faa367f750f8a0aea9de68a359
parent 50c92e02
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -496,14 +496,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
        mSearchView = (EditText) findViewById(R.id.search_view);
        mSearchView.addTextChangedListener(mPhoneSearchQueryTextListener);
        mSearchView.setHint(getString(R.string.dialer_hint_find_contact));
        mSearchView.setOnFocusChangeListener(new OnFocusChangeListener() {
            @Override
            public void onFocusChange(View view, boolean hasFocus) {
                if (hasFocus) {
                    showInputMethod(view.findFocus());
                }
            }
        });
    }

    final AnimatorListener mHideListener = new AnimatorListenerAdapter() {
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ public class PhoneFavoriteFragment extends Fragment implements OnItemClickListen
        PhoneFavoritesTileAdapter.OnDataSetChangedForAnimationListener {

    private static final String TAG = PhoneFavoriteFragment.class.getSimpleName();
    private static final boolean DEBUG = true;
    private static final boolean DEBUG = false;

    private int mAnimationDuration;

+2 −1
Original line number Diff line number Diff line
@@ -386,7 +386,8 @@ public class PhoneFavoriteListView extends ListView implements SwipeHelperCallba

        // Draw the drag shadow at its last known location if the drag shadow exists.
        if (mDragShadowOverlay != null) {
            mDragShadowOverlay.setLayoutParams(getDragShadowLayoutParams());
            mDragShadowOverlay.setX(mDragShadowLeft);
            mDragShadowOverlay.setY(mDragShadowTop);
        }

        final ContactTileRow tile = (ContactTileRow) child;