diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-26 18:01:44 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-26 18:01:44 -0700 |
commit | da602a829d0a1325aa23132705b7c1f564f09bcd (patch) | |
tree | 90d779b6d32531edccf36fb9f70a7c7cac87739e | |
parent | 1ec23cf662852ad1735f0678453225a7fe55004f (diff) | |
parent | 6503dc1a70659eaefcfbe6a432e1d4b86254d1ab (diff) |
resolved conflicts for merge of 6503dc1a to klp-modular-dev
Change-Id: I33c2390d56e72a300af7e195e66fd4a73db7570b
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index a7624664f..1e99b23ba 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -45,9 +45,12 @@ import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; +import android.view.ViewGroup.LayoutParams; +import android.view.ViewTreeObserver.OnGlobalLayoutListener; import android.view.inputmethod.InputMethodManager; import android.widget.AbsListView.OnScrollListener; import android.widget.EditText; +import android.widget.LinearLayout; import android.widget.PopupMenu; import android.widget.Toast; @@ -314,7 +317,10 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mFragmentsFrame = findViewById(R.id.dialtacts_frame); mRemoveViewContainer = (RemoveView) findViewById(R.id.remove_view_container); - mSearchAndRemoveViewContainer = (View) findViewById(R.id.search_and_remove_view_container); + + mSearchAndRemoveViewContainer = findViewById(R.id.search_and_remove_view_container); + + setupFakeActionBarItems(); prepareSearchView(); if (UI.FILTER_CONTACTS_ACTION.equals(intent.getAction()) @@ -331,7 +337,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O @Override protected void onResume() { super.onResume(); - setupFakeActionBarItems(); if (mFirstLaunch) { displayFragment(getIntent()); } else if (!phoneIsInUse() && mInCallDialpadUp) { @@ -530,6 +535,11 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O ft.commit(); mDialButton.setVisibility(shouldShowOnscreenDialButton() ? View.VISIBLE : View.GONE); mDialpadButton.setVisibility(View.GONE); + + if (mDialpadOverflowMenu == null) { + mDialpadOverflowMenu = mDialpadFragment.buildOptionsMenu(mMenuButton); + } + mMenuButton.setOnTouchListener(mDialpadOverflowMenu.getDragToOpenListener()); } @@ -650,17 +660,12 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O if (mOverflowMenu == null) { mOverflowMenu = buildOptionsMenu(mMenuButton); } - if (mDialpadOverflowMenu == null) { - mDialpadOverflowMenu = mDialpadFragment.buildOptionsMenu(mMenuButton); - } - // Initial state is with dialpad fragment not shown mMenuButton.setOnTouchListener(mOverflowMenu.getDragToOpenListener()); } mFakeActionBar = findViewById(R.id.fake_action_bar); mCallHistoryButton = findViewById(R.id.call_history_button); - // mCallHistoryButton.setMinimumWidth(fakeMenuItemWidth); mCallHistoryButton.setOnClickListener(this); mDialButton = findViewById(R.id.dial_button); @@ -668,7 +673,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mDialButton.setOnLongClickListener(this); mDialpadButton = findViewById(R.id.dialpad_button); - // DialpadButton.setMinimumWidth(fakeMenuItemWidth); mDialpadButton.setOnClickListener(this); } |