History log of /packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
deab5c531563fb45aaec9305302faa46d9cbcf04 28-Jul-2015 Yorke Lee <yorkelee@google.com> Fix bug in FAB action

If in contact search, always show the dialpad if the FAB is
clicked.

Bug: 22751856
Change-Id: I069064489664a1f9c3749b34e8b333f878bbf04b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
575ae388961252a771488c357e425fca191594b2 16-Jul-2015 Yorke Lee <yorkelee@google.com> Add permission prompts for contacts and dialpad search

Update the following fragments to handle denied permissions
-Contacts Search (Contacts and Location)
-Dialpad Search (Phone)

Tweak and remove some of the onTouch listener logic as they are
no longer valid with the new UI. Instead of intercepting the touches
when the query is empty and returning to the main dialer activity,
allow the fragments to remain on screen if the permission request
UI is showing.

Modify signature of onEmptyViewActionButtonClicked to remove unused
permissions parameter.

Bug: 22174668
Change-Id: I96d00f2ab45df936dca602ac025f723638ac02c4
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
38019af70eb1ca084d36291390bbc54dc81027de 15-Jul-2015 Yorke Lee <yorkelee@google.com> Update Dialer UI to prompt for permissions

First pass at adding functionality to Dialer to prompt for
permissions. Also updates the UI for various fragments when
there are no contacts/calls available to unify the UI with the
new UI for the permissions denied state.

* Refactor existing empty view functionality and encapsulate
into a new custom view class

* Add action buttons to existing empty views in various fragments
-> Speed Dial (Add to favorites) - scrolls to all contacts fragment
-> Recents (Make a call) - shows dialpad
-> All contacts (Add a contact) - Launches add contact dialog

* Add functionality to various fragments to detect if permissions
are denied, and request the permission when the action button
is pressed.
-> Speed Dial (request for contacts permission)
-> Call Log (request for phone permission)
-> All contacts (request for contacts permission)

* Remove now unneeded EmptyContactsListAdapter

Remaining issues (to be addressed in a follow up CL to avoid bloating
this CL):
UI alignment tweaks for empty view to match mocks
If the read contacts permission is requested from the
speed dial screen, the all contacts fragment doesn't update with
the list of contacts until restarted.

Bug: 22174668

Change-Id: I70721914bb9b32910d746de288ccac049749e42e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
a79ecc9a0d0f4e3df44b437477985eb07b97711f 13-Jul-2015 Yorke Lee <yorkelee@google.com> Don't cache results of permission check

For maximum safety, always check the current permission status
on the fly.

Bug: 22455059
Change-Id: I05da7ec1ad2e885e3e5e78e14585c876ac19178e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
019713e2b85ff6868c7a77f556b03702d5d07cb0 07-Jul-2015 Nancy Chen <nancychen@google.com> Go to recents tab instead of CallLogActivity for call views.

Use the DialtactsActivity instead of CallLogActivity when
accepting ACTION_VIEW intents for the "calls" mime type.
Also remove an unused method in CallLogFragment.

Bug: 22266705
Change-Id: I1bf089901b1a5f9534c9f7a8484c12e535a87749
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
265aafcdba82f0c7bf9b24d195f6b52138d08b48 02-Jul-2015 Yorke Lee <yorkelee@google.com> Merge "Restore Dialer content after permissions granted" into mnc-dev
2a613022dbb278f0f7dd94cf49885cde9d36100c 01-Jul-2015 Yorke Lee <yorkelee@google.com> Restore Dialer content after permissions granted

First pass at making Dialer display the call log, favorites,
all contacts, and contact search after permissions are granted
withut having to restart the app.

Update cached permission status in onResume for Dialer activities
Update SpeedDialFragment to correctly initialize loader in
onResume if it was null previously because of revoked permission.

Bug: 22205650

Change-Id: I68982e69395bc9c7da84ff3221cd12b8f79005f9
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
33cca17c91bb64147725d1d84eed92845fe572b7 01-Jul-2015 Yorke Lee <yorkelee@google.com> Merge "Fix dialer monkey NPEs" into mnc-dev
24d034f92998a52868c10039e9c728f9ab5a44aa 01-Jul-2015 Yorke Lee <yorkelee@google.com> Fix dialer monkey NPEs

Monkey tests exposed a bug in Dialer where certain call shortcuts
could show up if contacts permissions were disabled and the UI was
changing quickly.

Don't enable shortcuts by default, and make sure to correctly
disable all shortcuts in the case of missing permissions.

Bug: 22225052
Change-Id: Icdd81412f695860eb322d7ccdc30555591c584d0
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
d5de03bcc20fcdb667fdc9d0eb56f0d6c57da0c8 01-Jul-2015 Nancy Chen <nancychen@google.com> Ensure the EXTRA_SHOW_TAB is checked for all new intents.

onNewIntent is only called when the activity is already active so when
an intent is sent to start the DialtactsActivity on a specific tab when
the DialtactsActivity is not already active, the code to switch to the
specific tab is not called. Move this code to onResume() instead.

Bug: 21120186
Change-Id: I735eae22ca5de54f4c17688777b4309616f2c691
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
6bc6716bcecf319109d47a90e8f223c96c5a66fb 27-Jun-2015 Yorke Lee <yorkelee@google.com> Accessibility fix for Dialer search results

In portrait mode, resize the listview to fit above the dialpad,
so that accessibility services can correctly traverse the
view hierarchy.

Bug: 20172384

Change-Id: I35fb49be7bea5d13d951c4d954ddaf9d8d12780e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
7a6f189bf6a3edfc5d24aa030a3ba915c6771c2c 27-Jun-2015 Yorke Lee <yorkelee@google.com> Make the full search bar respond to clicks

Bug: 21663461
Change-Id: I79bf44f7956511e6894a122a98a69d7793b9a785
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
75d5b2d7d73e184ed813cc5b42b19d7e21b6bd8c 20-Jun-2015 Andrew Lee <anwlee@google.com> Add extra to jump to DialtactsActivity tab.

+ For the voicemail notification, jump to voicemail tab.
+ Jump through some hoops to handle this properly when waiting for the voicemail
status to be retrieved.

Bug: 21120186
Change-Id: I5a82f3ecafadb45246e6637e8275a09f78cc188a
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
6324f707bc35d9d3336f58f6004d1f3b1e6de1a3 16-Jun-2015 Andrew Lee <anwlee@google.com> Fix FAB state and transitions.

+ Change to dialpad FAB in search (used to stay as add contact
FAB, if we were in the Contacts list).
+ Position dialpad to align end in search (used to stay in the
center, if we opened the search from Speed Dial).
+ Restore correct position/icon when exiting search.
+ Add correct FAB scale in/out behaviors in for transitions
between lists fragment and search UI, search UI and dialpad,
in particular for when the FAB changes position from END to
MIDDLE when going from search UI back to Speed Dial.
+ Add FAB scale in/outs for showing/hiding the soft keyboard.

Bug: 21161760
Change-Id: Idbddbac161e459e3708d43395850d80927d5e448
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
83131715419e89eebe8e4ea7ada7f96ec37dd8f9 17-Apr-2015 Santos Cordon <santoscordon@google.com> "Emergency" dialpad behavior.

Change-Id: I132a119238c8de7249a4944e6dda472b3851637e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
2b36667435ab8b8346b65d62fad38461406ed50d 02-Jun-2015 Yorke Lee <yorkelee@google.com> Merge "Enter search UI even if dialpad is not animating" into mnc-dev
7cc6149445fbfaaef33b3a351e76829390a87226 01-Jun-2015 Yorke Lee <yorkelee@google.com> Don't use Log.isLoggable to determine DEBUG flag

This allows unnecessary debug statements to be stripped out by
the compiler.

Change-Id: Id1b6f8bd6c86cf5014e4b76524aa3839eb31bbb8
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
81a313dfd824a4aafe86e636c537a08bae0c1e0b 01-Jun-2015 Yorke Lee <yorkelee@google.com> Enter search UI even if dialpad is not animating

This fixes a UI bug that happens when the dialpad is displayed
without animation.

Bug: 21524134

Change-Id: Ic566b09c2839d7f34d5d983f67e592c1b2d50d2e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
0c67130582059b989d8779ef59a0ac2d6eec04ca 26-May-2015 Yorke Lee <yorkelee@google.com> Merge "Handle runtime phone permission" into mnc-dev
44ed26cfc052715acc7e3be088cb49b733ddef35 26-May-2015 Yorke Lee <yorkelee@google.com> Merge "Handle runtime permissions in Dialer" into mnc-dev
b7330e3802e8f9182ae1f5e54857a713b2f13547 23-May-2015 Yorke Lee <yorkelee@google.com> Handle runtime phone permission

We don't have access to the call log without the phone
permission, so disable the following functionality:

1) Call log display
2) Show call history overflow menu option
3) Last number dialed functionality

Bug: 20266292
Change-Id: I2f1d4b8b5f747d2fa04c3a9c291f9cf5147646b7
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c16ea5ad67bf454158b364dec2f26c95a879c350 20-May-2015 Yorke Lee <yorkelee@google.com> Handle runtime permissions in Dialer

Conditionally disable the following features if the required
permissions are not available:
1) Display of all contacts
2) Display of speed dial
3) Caller ID in call log
4) Import/export contacts
5) Conversion of People.CONTENT_ITEM_TYPE and Phones.CONTENT_ITEM_TYPE
into a phone number (via DIAL intent)
6) UndemoteOutgoingCallReceiver
7) Contact Search
8) Contact lookup in call detail activity
9) Nearby places search

Bug: 20266292

Change-Id: I6d26902acb0eac407ae7bc18c11aa6ec57299506
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
432d4b57728981f55a5ab5ee502e927e8d1d15fb 21-May-2015 Andrew Lee <anwlee@google.com> Some ListsFragment cleanups.

- Delete unused shortcut code.
+ Consolidate logic for reporting the current lists view.
+ Change page position logic to make private the list fragment's
calculation of the type of tab in RTL.

Bug: 21328994
Change-Id: Ic05a895fce77fea668798fca6e67863a2fcfd88a
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
791b488fb8f835bb7976cb1f839a0b3ccf04132c 15-May-2015 Yorke Lee <yorkelee@google.com> Fix potential Dialer NPEs

Fix NPEs encountered during monkey tests

Bug: 21167534
Change-Id: I98b6f675adfd233d3583c363f7daeca1bc14d8b7
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
247df6ee4f43af916f7e7f339ed181a18807ef36 13-May-2015 Andrew Lee <anwlee@google.com> Reorganize Intent utilities, add send SMS intent.

+ Rename CallIntentUtils.java to IntentUtil.java.
+ Consolidate various intent creation methods to new file, and update
referenes throughout the application.

Bug: 20433758
Change-Id: Iee9e37985217c38c816124d0e74dff40a2871680
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
e7ef086eb7b676a5006345082fe12b7ec15e084b 08-May-2015 Yorke Lee <yorkelee@google.com> Merge "Fix jank when showing dialpad" into mnc-dev
6c450eb606f9e052a152e37759d3866cb605e1ba 08-May-2015 Yorke Lee <yorkelee@google.com> Fix jank when showing dialpad

Reorder sequence of events so that the search fragment is only
displayed after the dialpad animation is complete.

Bug: 20891354
Change-Id: I3aaba7c715f740d7a7ee8f5273eee3b85bfdc958
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
5e6431ec9df6cb62cab970c0b46618be3570c2f7 06-May-2015 Andrew Lee <anwlee@google.com> Merge "Change FAB icon and behavior for contacts tab." into mnc-dev
fdfeaaf4e5ae0277a03529e501eb1c562f769851 05-May-2015 Andrew Lee <anwlee@google.com> Change FAB icon and behavior for contacts tab.

+ Change the icon/behavior depending on the tab position.
+ Move current tab position logic from DialtactsActivity into the
lists fragment.
- Delete unused method, shift some helpers around.

Bug: 19366434
Change-Id: I6da767300907b3afd006248afb882bebde7bdfe6
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
71532b2fcee195bcb1574b939173e134242a313b 05-May-2015 Andrew Lee <anwlee@google.com> Merge "Revert "Fix NPE from ListsFragment crash."" into mnc-dev
6a86624270b51df0adc4fc1529661a45a2bb9f03 05-May-2015 Andrew Lee <anwlee@google.com> Revert "Fix NPE from ListsFragment crash."

This reverts commit d10eef28fc67aea0e4f4f49813b802ce1df5f7c7.

Change-Id: I0867f991c071fc55d1eadf611386b713c910d17f
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
69705be50fc4c84b35df88c879dd9a4b4de655b3 05-May-2015 Andrew Lee <anwlee@google.com> Add "show call history" list item.

+ Add new VIEW_TYPE to the CallLogAdapter.
+ Reintroduce boolean on CallLogAdapter to specify if a call history
list item should be shown.
+ Add new ViewHolder and layout for footer.
+ Some minor styling tweaks and cleanups.

Bug: 20108202
Change-Id: Ie4a86bff9e53cfd69ef8b061af048f40f4358579
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
d10eef28fc67aea0e4f4f49813b802ce1df5f7c7 02-May-2015 Andrew Lee <anwlee@google.com> Fix NPE from ListsFragment crash.

I'm not sure if anyone else is seeing this, but this change didn't
seem like it would be harmful to make. I was running into sadness
because mListsFragment was undefined.

Change-Id: I75712c2cb3626002372ac9b4812c44c2ed74c12f
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
b82e8dae149a9f247e5c9fcae02ced460670b0e7 18-Apr-2015 Yorke Lee <yorkelee@google.com> Use TelecomManager.placeCall API

Bug: 20348183
Change-Id: If1b193f933b4a7b2b322784b0cbbc66c210b25df
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
467de3dc2be8fa6c815782852f47a752eb77a6dc 17-Mar-2015 Andrew Lee <anwlee@google.com> Make menu options protected instead of private.

Thsi allows Google Dialer to add a feedback option and handle its
behavior accordingly.

Bug: 19254693
Change-Id: I64ab34049406d10f53504af8d5eda9ac29758ef8
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
dc500de99ccb42393d6dae3ecf4748b560775019 06-Mar-2015 Andrew Lee <anwlee@google.com> Remove OverlappingPaneLayout.

- Remove the OverlappingPaneLayout, which is no longer needed
since the recents card has been removed.
- Known Issue: SearchBar is no longer hidden on scroll.
- Known Issue: shouldShowActionBar does not return correct value.

I plan to fix these KIs in a follow up CL, but going for incremental
changes for now to try to keep it apparent what is being done.

Bug: 19372817
Change-Id: I9ae1ca19820c87f252863074a5bcab6923b03558
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
e3f59a8f06add2edade829ff043ebee8da5fdc85 26-Feb-2015 Andrew Lee <anwlee@google.com> Fix FrameLayout cast exception.

I was seeing a ClassCastException: android.widget.FrameLayout
cannot be cast to com.android.dialer.widget.SearchEditTextLayout.

But, it's kind of bizarre, because it disappeared after I tried
implementing this fix, even when creating what should have been
a clean branch replicating the original conditions (?).

In any case, this would make us more resilient to changes in the
custom view used by the action bar by searching for the
SearchEditTextLayout by id.

Change-Id: I9f4909b55e4ef29562712643048eb3fb942ff684
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
8a397adffe40af39fe4ca20865cc3748a29376a1 04-Feb-2015 Brian Attwell <brianattwell@google.com> Merge "Move CallUtil into Dialer. P1/3"
8204324a69c4d6b1b95351ab2863b5ddac6fb0a5 03-Feb-2015 Brian Attwell <brianattwell@google.com> Move CallUtil into Dialer. P1/3

CallUtil relies on the a priviliged intent that should only
be used by system apps. Therefore, it shouldn't be used by an
unbundled Contacts app.

I'm leaving one (isVideoEnabled) method from CallUtil inside
ContactsCommon. This way, when the changes that Tyler made
inside m-wireless-telephony-shamu-dev (b/19062133) get
merged back into master both ContactsCommon and Dialer
will be updated.

Bug: 18777272
Change-Id: I49c9cc714ded01d523ed770a5bf62cf92c378e2f
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
d5c512afca0341039e494e4df976b18ff07d146a 30-Jan-2015 Yorke Lee <yorkelee@google.com> Add DialpadFragment on-demand instead at on startup

Add the DialpadFragment dynamically instead of everything at
startup. Once added, it is then shown/hidden instead of removed
for performance reasons.

Reduces startup time on a N5 from 603ms to 440ms.

Bug: 18431193

Change-Id: I0482bd8277896ed8a6956fc03b6afaf44b442eb3
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f5554ceb3c152949b4b6278b7f5e1522148a574c 27-Jan-2015 Yorke Lee <yorkelee@google.com> Add systrace events to track Dialer startup performance

Bug: 18431193
Change-Id: I92db4ae61405d8d8445b72e7ac0daa0794af8335
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
1513fec51cbb557685f1976ee2050c73ccdbe036 05-Dec-2014 Tyler Gunn <tgunn@google.com> Updating "Add Contact" to pre-populate full contact info.

1. For recent call entries with a name and phone number, the name will
now also be added.
2. For recent call entries which have complete address information provided
by nearby places, all information except the contact photo will be added. The contact photo is
excluded, as the ContactsLoader would attempt to load the contact photo
while parsing the contact information. On a slow connection this could
cause a noticeable pause while adding the contact.

Bug: 17308163
Change-Id: If2e78bd1257096b344ff2dd266dcdbaeed4f1471
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c1cfae553cc08c832155eb5b951690a4e349b5bc 20-Nov-2014 Tyler Gunn <tgunn@google.com> Correcting population of search box with voice search results.

The issue is the onActivityResult callback which receives the result of
the voice search is called BEFORE the dialtacts activity is resumed, and
hence the search results fragment is not properly shown (since resume has
not yet completed).

Changed so that the search results are stored until onResume, where they
are applied to the search box.

Bug: 18410823
Change-Id: I02985f722643846067678a67f2c1fda76434fbc4
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
72d6625a51804acec2d9c9b38dc740a65443bc56 08-Nov-2014 Evan Charlton <evanc@google.com> Allow ILD information to be populated

Expose the dialpad's ILD (international / long distance) fields to be
populated by the dialer.

Bug: 13334252

Change-Id: Ia366148ef1318a2dacc4971d51a3bd34ec3c39de
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
b48f64c8dc3a7b17801222fe3be2c584054dcb66 06-Nov-2014 Yorke Lee <yorkelee@google.com> Merge "Improve Dialer analytics" into lmp-mr1-dev
7ee5c422e36cf3d40cbd24bbb5b87754b4820d02 04-Nov-2014 Yorke Lee <yorkelee@google.com> Improve Dialer analytics

* Send screen view for first fragment loaded inside ListsFragment
* Send screen view for voicemail playback fragment
* Send screen view for currently active fragment when activity is restarted
* Don't send spurious screen views on rotation
* Send screen views for call log fragments in call log activity, and
differentiate between them with a tag

Bug: 18158037

Change-Id: I09fda53db33f6a6acc4a3b477de992aa94921c71
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
199b7f007decf08652d3f7825ed1e042fc68d8ed 06-Nov-2014 Nancy Chen <nancychen@google.com> Reset mSavedState in onNewIntent because the activity is refreshing.

Currently mSavedState is reset to false in just onResume, but it needs
to be reset earlier so that the dialpad is allowed to show itself when
an ACTION_DIAL intent is sent.

Bug: 18242314
Change-Id: I9ddd2a431edc4c2d1cc447b14ee8d1347d139552
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
622ba6ca7d736435d7f3ec879cc2ef55e9ef0b94 31-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Use improved analytics in Dialer" into lmp-mr1-dev
beab3bbc2c977a48e3affc3e61cc2fdbb22c4ae2 27-Oct-2014 Brian Attwell <brianattwell@google.com> Use improved analytics in Dialer

Remove dependencies on old analytics code.
Initialize analytics inside DialerApplication.

Improving analytics CL #4/4

Bug: 18039620
Change-Id: I52f68e50297db2aae61d67d9bdbe66cb1d75aafc
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
35741bb2f60cf438595950d08d078962e6cac3af 29-Oct-2014 Yorke Lee <yorkelee@google.com> Merge "Refactor ActionBarController and tests" into lmp-mr1-dev
c98a5bb2d806dde99325a15466a2bf144d216ae8 29-Oct-2014 Yorke Lee <yorkelee@google.com> Refactor ActionBarController and tests

The original CL to fix ActionBarControllerTest by using an
ActivityInstrumentationTestCase was too heavyweight and caused flaky
test. It was also indicative of a flaw in the original design that
ActionBar couldn't be mocked out easily.

Refactor the code so that:
1) getActionBar() is no longer needed
2) Respect the invariant that all access to the actionBar goes through the
ActionBarController (see the changes in ListsFragment) so that any change to
the ActionBar's hide offset can be tracked appropriately.

Bug: 17487016
Change-Id: I935b683ddb301ca5d3952889af1381bdbdcc97d3
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
8265c1eb4d2c3fc627cded0bbbee5ca5325b6b98 28-Oct-2014 Yorke Lee <yorkelee@google.com> Merge "Fix various IllegalStateExceptions in Dialer" into lmp-mr1-dev
19e68ca002b7586b84fcde5e32eca125e7a033ad 28-Oct-2014 Yorke Lee <yorkelee@google.com> Fix various IllegalStateExceptions in Dialer

Make sure to not commit any fragment transactions when
onSaveInstanceState has been called.

Bug: 18038718
Bug: 18142294
Bug: 18106980
Change-Id: I0755208ee6637431cb3e494b5494b1ccdd930489
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
0104d9bbcb1c4294bbd10b595f5f78ddcdcc7e7e 28-Oct-2014 Andrew Lee <anwlee@google.com> Create call settings intent in DialerSettingsActivity.

- Remove helper method in DialtactsActivity.
+ Create intent in DialerSettingsActivity.

This is the only place the method is called; it seems that this code
to create the intent should live in DialerSettingsActivity instead
of DialtactsActivity.

Bug: 18114923
Change-Id: I129b716c2a247994647c123f1cbd945b7ef36778
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c311af1f33f9d408c7eee5a6eeda46f1d1b7265b 23-Oct-2014 Brian Attwell <brianattwell@google.com> Delete duplicated class

Also renamed dialerbind package

Analytics CL #2/5

Bug: 18039620
Change-Id: I45722015978038cdccb6a848c28e4b6c90d5aa4f
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f614f6fbe3351316af5a6119a866bdf25cb0d7e4 03-Oct-2014 Yorke Lee <yorkelee@google.com> Fix NPE in onListFragmentScrollStateChange

Ensure that view passed into DialerUtils.hideInputMethod is
never null (since mParentLayout refers to the main content view, it
should never be null)

Also rename parentLayout to mParentLayout

Bug: 17797827
Change-Id: I2ac9864138776fcdaea5b7d2df52a82d31911039
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
9dc924c8bcc0bc8d996452e9ce3215b5f064962e 12-Sep-2014 Tyler Gunn <tgunn@google.com> Renaming Telecomm to Telecom.

- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: I44d6d6546cac53232e4e2be0ebe0391d02411309
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
3ffef7aeea2b470229b54e684e12b14e7d8ce8dd 11-Sep-2014 Nancy Chen <nancychen@google.com> Merge "Set default action bar elevation for dialer." into lmp-dev
9c09323b87fd122305bc4dbe162d159b39c948fd 11-Sep-2014 Nancy Chen <nancychen@google.com> Set default action bar elevation for dialer.

Currently the action bar elevation is only applied to the main android
activity, we want this elevation everywhere, in particular for the
Settings action bar.

Bug: 17420792
Change-Id: Ia80ac4debfbfa771364b74a2002c2db4d0b3b685
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
29ae4ae721a1f6d89a8fdca0fd4d49a1e5ecc4a7 10-Sep-2014 Yorke Lee <yorkelee@google.com> Set the visibility of the FAB correctly even if mAnimate is false

When launching directly into the dialpad from a dial intent, the
FAB wasn't getting shown sometimes due to animation being skipped.
Make sure to force it to appear regardless of whether animation is
required.

Bug: 17443578
Change-Id: Ic53628b9792038cda0e3e447e5268e8e6fd22190
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
ae274c05cdb6707ca9593bedf20c016cd8164c0b 06-Sep-2014 Jay Shrauner <shrauner@google.com> Use framework scheme definitions

Use PhoneAccount defined values for SCHEME_{TEL, SIP, VOICEMAIL}.

Bug:17398074
Change-Id: I77dfa539646b9c5ae5dca220bbc906048a17b383
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
405a6e6822fb19a9d14329da92e03e75e2e72703 21-Aug-2014 Andrew Lee <anwlee@google.com> Use different FAB for dialpad, and use new animations.

+ Use scaleIn/scaleOut for FABs in the Dialer application.
+ Add assets for green fab.
+ Update dialpad fragment, both the Java and layouts, to have their
own FAB containers and FABs.
+ Change DialpadSlidingLinearLayout into
DialpadSlidingRelativeLayout.
- Removed or relocated dial some FAB handling, visibility, and
translation functions. Now that the FABs in the dialpad fragment
and DialtactsActivity are distinct, the logic can be scoped more
precisely to a particular fragment/view.

Bug: 16399233
Change-Id: I86f9f0053dc3c50fe0d5046389632af7ddff9f67
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
105015e3b07650638e696dcf4cdeb8f4d1b14de4 22-Aug-2014 Nancy Chen <nancychen@google.com> API Review PhoneManager -> TelecommManager. Rename methods (1/6)

PhoneManager
- handlePinMMI docs should explain what a Pin is and what MMI is
- rename isInAPhoneCall to isInCall
- rename showCallScreen to showInCallScreen
- merge this class into TelecommManager, we don't need both

Bug: 16960458

Change-Id: I6d1939175c0292641f6ece0b630db8a864871d7e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
857603964e936e1f0717b0d8bd0289e2b4c0c1cb 20-Aug-2014 Andrew Lee <anwlee@google.com> Merge "Pass in floating action button to controller." into lmp-dev
bd7a05650a9ba79ef29ac66908ea7146fe462cc8 19-Aug-2014 Andrew Lee <anwlee@google.com> Pass in floating action button to controller.

Bug:16399233

Change-Id: I15a45804919711cffc884b6e9faa0be7734f786b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
e78797f8dd02b209f24c0e9261e8cac81facf0b1 19-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Reveal InCallUI from touch point in Dialer. COMPLETED." into lmp-dev
49db1addc0a5c8b111f810766a3f04d15747f49a 19-Aug-2014 Nancy Chen <nancychen@google.com> Reveal InCallUI from touch point in Dialer. COMPLETED.

Reveal now works from the favorites tiles, recent cards/call back,
search results, dialpad, and disambiguation dialog.

Bug: 15284651
Change-Id: I43ba1d7095b839ec24faa043de042048d36057b1
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f43b32f1b227c043bc7d7af0d66dfc0c9aa5a2e8 15-Aug-2014 Andrew Lee <anwlee@google.com> Tweak FAB tints and positioning.

+ Change FAB tint so that it's not 100% opacity.
+ Change dialpad touch tints to new theme color.
- Don't translate FAB downwards when opening dialpad.

Bug: 16399233
Change-Id: I7d5e0015e0d7d436ce3e2780f3048dfb792d13c0
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
0d3a73932a23cb07168d25ec331a9abf72817346 12-Aug-2014 Nancy Chen <nancychen@google.com> Send MotionEvent with touch coordinates to call intent

Be able to send the x,y coordinates of a user's touch action on an element that
introduces a call in order to start the InCallUI animation from that touch
point. This change covers the call log "call back"/recent card.

Bug: 15284651
Change-Id: Ife6fe003fcf0dd106640add5d65c10fd8fd1cb9e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
bf7a95e47facece917e99f19848c014c1438cd77 12-Aug-2014 Tyler Gunn <tgunn@google.com> Correcting dialpad animations in landscape (3/3).

1. Fixed slide in/out animations for RTL locales.

Bug: 16463723
Change-Id: Ifb32e8daed58949d53acc23828d083f1adac3944
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
eefa1c9abd925709356758b64cdca930abc44621 06-Aug-2014 Yorke Lee <yorkelee@google.com> Merge "Fix some action bar logic" into lmp-dev
a524ae57ec8fce9532ed998c63a5577fce738fd5 06-Aug-2014 Yorke Lee <yorkelee@google.com> Fix some action bar logic

* Restore action bar slid state only after onCreateOptionsMenu, when it has
an effect
* ActionBarController is now the only way to make changes to the offset of
the action bar so that it can appropriately restore its state

Bug: 16710397
Change-Id: Id9e0ebe210c89df0be56b32aa3bbd959cce88621
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
2fec47bc040148b4de1d5c32391cb0cd1a36f413 06-Aug-2014 Yorke Lee <yorkelee@google.com> Set correct interpolator for dialpad animation

Bug: 16659277
Change-Id: Ia9639c6b8e3d192a4fbb2ad8c7a8452c5b31839e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
106af730bde43b0e97849b95591ec0804e17b5d5 06-Aug-2014 Sai Cheemalapati <saicheems@google.com> Merge "Fragments in Dialtacts report to Analytics." into lmp-dev
8fd67244fcd6a4fbcd0c534c530e237ab2f055c0 06-Aug-2014 Yorke Lee <yorkelee@google.com> Tweak Z-depth for Dialer ActionBar

Bug: 16550151
Change-Id: I27cff5de9aa97f4709b609574c3986c76d9f7050
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
2d7faf6c13212f8a035609181de4f594a76af960 04-Aug-2014 Sai Cheemalapati <saicheems@google.com> Fragments in Dialtacts report to Analytics.

Fragments in DialtactsActivity now report to Analytics when viewed.

Change-Id: I86d6cabc372bd466a4907d79b1613e5ae1445227
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
7fa029f77d97aaa7227d961354f9a2e32dd63a95 30-Jul-2014 Sai Cheemalapati <saicheems@google.com> Changing Activities to implement Analytics (1/2).

Dialer's Activities now implement AnalyticsActivity.
All Activities now have access to sendHitEvent, which is a no op in
AOSP Dialer.

Change-Id: I318f08bfaf98cb88f9dbf6e4f28994b215bafa77
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
b8170de2a2d0e5cd3812720fe50616fae319413c 28-Jul-2014 Nancy Chen <nancychen@google.com> Decreased height of action bars in dialer

Kept the height of the search box the same while decreasing the height
of all other action bars.

Bug: 16627750
Change-Id: I43f2ae6b0f67113df2522369f5fef78c0dc12df4
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f543baadd1119bad7cd9ff7ed39e5598c6fc50d6 24-Jul-2014 Yorke Lee <yorkelee@google.com> Hide keyboard when next key is pressed

Also move some shared utility methods to DialerUtils

Bug: 16542561
Change-Id: Ibc574c24919bdcd11b0786fb9d22d29ff9c21bf1
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
69c247f619fd2f2474070bdbcec32b78f6444149 22-Jul-2014 Yorke Lee <yorkelee@google.com> Make ViewPagerTabs and FABController RTL aware

* Underline in ViewPagerTabStrips is correctly drawn in RTL mode
* Clicking on ViewPagerTabs propogates correct onPageSelected position
to ViewPager
* FAB is now end aligned instead of right aligned
* ViewPager in Dialer is correctly reversed and behaves correctly
* Call Log groups headers in call log are now correctly aligned in RTL
Bug: 16162264
Bug: 16464471
Change-Id: I2db6b9147a628a68fba5bbbdb7276855d483bad5
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
6eec22839828f77d64ddf1cbf2858fa62fd5c7fd 18-Jul-2014 Yorke Lee <yorkelee@google.com> Expose call settings as public API (3/3)

Use new call settings intent in Dialer

Bug: 16298644
Change-Id: Ia615797e20f396a38fe382f3a2d54ec41c5249ef
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
a5b475bbc4a0a41c3d0d8fc31b955e1fd96b1c9f 16-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Make ContactPreferences use SharedPreferences instead of System settings (5/5)" into lmp-dev
9072432dbf1d46aaeed2c02f48af925b393457bb 15-Jul-2014 Nancy Chen <nancychen@google.com> Remove unnecessary flag for disabling Account Selection

Since the account selection dialog no longer will appear on the dialer
app, the Dialtacts activity no longer needs to disable it.

Bug: 16290489
Change-Id: I14790ee047d46ef716cadf9a5d5e0b70e1d46898
(cherry picked from commit 29a2ef2f0371de25272e63b8498f939d1c202dba)
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
af6f195af0bb200d1bb06ad11dac476e8dff0073 15-Jul-2014 Yorke Lee <yorkelee@google.com> Make ContactPreferences use SharedPreferences instead of System settings (5/5)

* Move constants that originally lived in the framework into ContactsCommon
* Use SharedPreferences instead of System settings to persist preferences
* Use a SharedPreferenceListener to monitor changes instead of a content observer
on system settings
* Move DisplayOrderPreference and SortOrderPreference into ContactsCommon so that
it can be used by Dialer
* Create base DialerSettingsActivity in Dialer, and make GoogleDialerSettingsActivity
extend it
Bug: 16153186

Change-Id: I27befcc3b038038830f72092b55a6fc8a6f85674
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
74edcdcac9e211d2764c1831e12ad37f84e36502 12-Jul-2014 Yorke Lee <yorkelee@google.com> Allow overflow menu to overlap overflow button

Bug: 15988764
Change-Id: Ifeffb18a76f38a558e602c9fb5f62ef9d3404ecb
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
9134e25d7ab8eb687a36ce7ba199e66f44550fdd 09-Jul-2014 Ihab Awad <ihab@google.com> Implement multi-SIM capabilities (3/6) [DO NOT MERGE]

Bug:16292368
Change-Id: I367f838a08bd478aca86e2d75b221250ebd8a82e
(cherry picked from commit 0e8a870afc9de3063a652256e81f9bf2043914e0)
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
a2613190af7c578aba9b5f90767eef790942d201 11-Jul-2014 Yorke Lee <yorkelee@google.com> Remove unused import of ServiceManager

Bug: 6948882
Change-Id: Ie2c9ab76398ef4d9474e5ea8712b1cda1e4da782
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
659d2f22f093b9549a3d5f7722f6151932c9e93f 09-Jul-2014 Nancy Chen <nancychen@google.com> Remove SelectAccountDialogFragment for PhoneAccount on Dialer app (1/2)

One-time select will no longer be available within the dialer app so the
fragment and menu item have been removed.

Bug: 15473965
Change-Id: I13410b328f5b5ce887b8f3a9ba2c734d58008c56
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
6fcf29e37dd18aef65f47d3bb87ea340946bfc39 10-Jul-2014 Andrew Lee <anwlee@google.com> Merge "Hook up call intent for video call."
d15629deb20dd45572ee27fb2890e9a5a2a86ca3 08-Jul-2014 Santos Cordon <santoscordon@google.com> Update showCallScreen & isInAPhoneCall to use PhoneManager.

Change-Id: Ibe6900a0560611346d4ec8e109349b0c82c8a463
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
d2a683f90c936264ada9a9ec08747021de7f9666 09-Jul-2014 Andrew Lee <anwlee@google.com> Hook up call intent for video call.

Bug: 16013180
Change-Id: If067b2bb4252afa2c2e373b4eff9511dad821159
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
fc1fed72d6adf5158be271646655056b14d1ccf2 02-Jul-2014 Andrew Lee <anwlee@google.com> Add "Make video call" button to search fragments.

= Add new "make video call" shortcut type, and "handle" its click
in SearchFragment.
= Enable "make video call" shortcut for regular and smart dial search
fragments. For now, this shortcut does nothing.
= Enable "add contact" shortcut for smart dial search fragment.
= Changed the bounds of the shortcut items to fill to the edges.
= Convert shortcut click handling to use switch/case block.
= TODO: Enable/disable the shortcuts depending on whether video
calling has been enabled, once the option is available.
= TODO: Handle dispatching a video call intent, once that intent
extra is provided.

Bug: 16013180
Change-Id: I7563d1f2939e27c4b13ed966b73cd4badd9d9fa7
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
1d1bd0da0b32a5b8cb1c7c5585acccb180b19849 01-Jul-2014 Ihab Awad <ihab@google.com> Rename Telecomm "Subscription" to "Account" (3/7)

Change-Id: I866e9d4f629a2b23acb3d3d3f2baeb0a674522f7
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
87ba489564b25d4a64c9faaeafea46e2f72d8933 12-Jun-2014 Nancy Chen <nancychen@google.com> Add icon indicating subscription in call log/call history

Display an icon in the call details showing which connection provider
(subscription) is responsible for the call.

Bug: 15473965

Change-Id: I0c6755864083799b8bafe20c3692b0d943beeee3
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
b5f10d3dab09850fefce6d85f1e9d73f66cde5c3 23-Jun-2014 Andrew Lee <anwlee@google.com> Revert "Hide the dialpad fragment onResume after dialing."

This reverts commit 1f432a644a930688addec25bf406b3b1df08a6d3.

Change-Id: I21844fdfcde3e7864d01f3dbe1b171864023975e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
1f432a644a930688addec25bf406b3b1df08a6d3 23-Jun-2014 Andrew Lee <anwlee@google.com> Hide the dialpad fragment onResume after dialing.

- Before, the dialpad fragment was being hidden immediately after
the user dialed a number. This caused the view in the lists fragment
to flash for a second between pressing dial and launching InCallUI.
- Now, don't clear/hide the dialpad fragment once the dialpad
button is pressed.
- Instead, in DialtactsActivity, stash an instance variable to hide
and clear the dialpad fragment the next time onResume() is called...
that is, the next time the Dialer is opened.

Bug: 15829164
Change-Id: I1e7d253b914c049f49bc8c1230f7110d6e98ec08
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
fd723cae1dc2de0f83ec14639d4431674dd3b82e 19-Jun-2014 Sai Cheemalapati <saicheems@google.com> Update Emergency Dialer to match Dialer (3/7).

Emergency dialer style updated to match style in Dialer and
InCallUI.
Moved all dialpad resources to PhoneCommon.

Change-Id: I86747a58b196209a4543448ab939236eace7c52a
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
801d88e55c59414cee422ca0433cec8b1c39d1e6 20-Jun-2014 Yorke Lee <yorkelee@google.com> Revert "Update Emergency Dialer to match Dialer (2/5)."

This reverts commit 9598b51d20cb27acb8dfd47abf2accb612cddb3c.

Change-Id: I7c2d2b95740888af25b5b257572476b0f20900e3
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
9598b51d20cb27acb8dfd47abf2accb612cddb3c 19-Jun-2014 Sai Cheemalapati <saicheems@google.com> Update Emergency Dialer to match Dialer (2/5).

Emergency dialer style updated to match style in Dialer and
InCallUI.
Moved all dialpad resources to PhoneCommon.

Change-Id: I69ee95b20b9a6a7007288a754e12ea20763c3842
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
bd22a2c7d698fe3fa8cbcdb5e49e6d106355deba 20-Jun-2014 Yorke Lee <yorkelee@google.com> Merge "Fix Dialer tests"
7d20f8273886411ffc864231d59f780e450de3db 20-Jun-2014 Yorke Lee <yorkelee@google.com> Fix Dialer tests

Fix Dialer tests and also wrap all startActivity calls that have
the potential to fail with a catch block for ActivityNotFoundException

Change-Id: I02ce4b985eeb0e3e607b8008a333e02168acd378
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
8e0662990043a3b430a96d8e94b9d773f5a4deff 19-Jun-2014 Nancy Chen <nancychen@google.com> Add reference to TelephonyManager, renaming, remove checkbox (1/2)

Incorporating API calls to TelephonyManager.getSubscriptions.
Added new SubscriptionManager class to wrap data about subscriptions for
the purpose of passing between Dialer and its fragments.
* This particular CL deals with the renaming of the menu strings and the
* passing of data between the Dialer and its fragments.

Bug: 15473965

Change-Id: Id52b925c618952bd77970c157fa63e665203b04c
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
091732a2da10ab574d1a37cda07c5293e90c255c 17-Jun-2014 Andrew Lee <anwlee@google.com> Merge "Exit search UI when dialpad is hidden if no smart dial results."
9fd8f25659185a031b2a7c6120da899e54e41127 14-Jun-2014 Andrew Lee <anwlee@google.com> Exit search UI when dialpad is hidden if no smart dial results.

Bug: 15471462
Change-Id: Iaa8fd146d69a1c3a28c3106620228b43a6409bdc
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
4c92456688e34683c2879d89b6011b741b33a379 12-Jun-2014 Nancy Chen <nancychen@google.com> Add select sim dialog for dialpad menu

Also handles passing sim card information set in dialer menu
to the dialpad fragment.

Bug: 15473965
Change-Id: I075bf727402ba315c035eb741c563aafe67d60f6
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
00a3d5d576d53b43a46849bf40c43bccde44a9b2 13-Jun-2014 Sai Cheemalapati <saicheems@google.com> Fixes issue with FAB alginment.

FAB now aligns correctly when selecting tabs.

Change-Id: I94aefb9194a60c47504f238eedbebd466f9bd52d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
a851542c69872ffa6c5615fd8cdd1381f1b13b93 14-Jun-2014 Andrew Lee <anwlee@google.com> Clear fragments properly when search term is erased.

Specifically, in the scenario in the bug the dialpad was not shown
but we actually wanted to clear the speed dial fragment, not the
regular search fragment. Change this to affect the visible fragment,
rather than whether or not the dialpad is shown.

This onClick pathway is no longer used too, so deleting.

Bug: 15516704
Change-Id: Icd4419e0746ce0e2bcb9c9437dbac77d64bb8c98
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
beededb3fb7b3fcc9fa87f2a3ea50cac7415c794 11-Jun-2014 Nancy Chen <nancychen@google.com> Add menu items for multi-sim support

The main overflow menu will display a "select SIM card" option
when more than one sim is available.

Bug: 15473965
Change-Id: I18175cec57158f0a8189979849f6ad761eff1aff
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
28aab271e57a4966496b5d2ef2b067e8ace34679 11-Jun-2014 Yorke Lee <yorkelee@google.com> Use Framelayout instead of RelativeLayout in DialtactsActivity

Switch to FrameLayout instead of RelativeLayout since we don't need
the more complicated and expensive layout abilities of RelativeLayout.
This improves startup time (on hammerhead-eng, interpreted ART mode)
to about 1150ms on average from 1300ms originally.

Change-Id: I94400dcc58cc74497c71a7432a06a4dffe3b078d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
2bd4f7a892e22d41f4055027c7f0b21b3b4db03b 11-Jun-2014 Yorke Lee <yorkelee@google.com> am a6d7bd35: Merge "Empty ACTION_DIAL intent launches favorites" into lmp-preview-dev

* commit 'a6d7bd355e37674b4982525227bc969ea3a0c738':
Empty ACTION_DIAL intent launches favorites
cabd8647ac9a10465627818ebdef409b7ddd3583 11-Jun-2014 Adrian Roos <roosa@google.com> resolved conflict for merge of 469e9df0 to master

Change-Id: Ic96a35172c113e8b25084de3c8cf5e44f931903b
473dd6c9b6857f1effbe86f3a295006d661a22f0 10-Jun-2014 Yorke Lee <yorkelee@google.com> Empty ACTION_DIAL intent launches favorites

Bug: 15537399

Change-Id: I6262945f9b90d4378c24a8450d7c818604133623
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
6f009da749e307ebbd49658831e7f6bb8ee3e708 10-Jun-2014 Sai Cheemalapati <saicheems@google.com> Merge "Updating Dialpad animation in InCallUI."
ca0d53b5b855c7678912d66ae79800c67999c713 09-Jun-2014 Sai Cheemalapati <saicheems@google.com> Updating Dialpad animation in InCallUI.

Dialpad now saves orientation state.
Animation now matches duration and direction in Dialtacts.

Bug: 15386162
Change-Id: I57fd6797b2bf7a5bff86f5175e18a70e16ca522b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
99085ebd8abb775a550d0f9c5c559b0b10ca2e6a 09-Jun-2014 Sai Cheemalapati <saicheems@google.com> Fix floating action button position in landscape.

Floating action button should always be fixed to the right
side of the screen in landscape orientation.

Bug: 15386162
Change-Id: Ic14fa184ffdf4ad7b817930217ea3d3fca901949
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
1896344b53ddf6cdaf17dc02a05c45f587879d99 07-Jun-2014 Andrew Lee <anwlee@google.com> Revise remove view target positioning.

- Move placement from dialtacts activity layout to the lists fragment,
so that it can be positioned over the tab bar.
- Relocate references to RemoveView/RemoveViewContainer to the lists
fragment from the activity class.
- Set colors using tints, remove old highlight state asset.
- Fade out search bar and recent card when dragging.

Bug: 15434489
Change-Id: I49205c79aeb008a30efc3c2ea417b8836444e203
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
49378067cde003c0443d6837c01085ee63482889 06-Jun-2014 Sai Cheemalapati <saicheems@google.com> Merge "Moving FAB logic to ContactsCommon."
c4969ea3d2ac04f58f0caccef709bc95a182c378 05-Jun-2014 Sai Cheemalapati <saicheems@google.com> Moving FAB logic to ContactsCommon.

Moved FAB to ContactsCommon.
Cleaned up FAB Controller.
Replaced implementation of FAB in InCallUI with controller.
Prevented animations from happening again in InCallUI on
orientaton change. FAB also repositions correctly on
orientation change in InCallUI.

Bug: 15386162

Change-Id: Ibc1739a54f236939db29cab350233275099a4446
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
891c0e95e0b8839c944e3d819a35c056df3dad05 06-Jun-2014 Andrew Lee <anwlee@google.com> resolved conflicts for merge of 97c57cce to master

Change-Id: Ie2d46ac867c235f1281e02b3e03574f287eacdb3
04675a5123b50eec37ab84b431afda000541f573 06-Jun-2014 Andrew Lee <anwlee@google.com> Add click listener to search icon.

This way, if the user taps on the icon they will enter the search
UI... increases the surface area for this interaction slightly.

While I was at it, I also changed an unnecessary class variable to
be scoped within onCreate.

Bug: 15457217
Change-Id: I07796eb3f49595b136a2a075d9039a7b899c7819
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
414606561a0ae18d47a263eaa2b2d9622c317ae0 03-Jun-2014 Sai Cheemalapati <saicheems@google.com> Modified floating action button.

No longer relies on RelativeLayout for positioning.
Moves as tabs scroll.
Repositions to the correct place in landscape dialer.

Bug: 15167378
Change-Id: I721336b3dbd60defbce77f3a09b4ba94cfc826b6
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
9da8fb46fa21159321295119e1b2075747cfbbf9 03-Jun-2014 Andrew Lee <anwlee@google.com> DO NOT MERGE. Styling search to match redlines.

- Cherrypicking changes back to master. Mostly, this involved
transferring changes dealing with padding and the translation values.
- Shift arrow/close icons.
- Use 20sp font in expanded search (causes baseline to shift down).
- Update action bar movement to use dialpad's interpolators and
durations.
- Smoothed out animations. Icons in the view being faded out are now
instantaneously set to GONE. The margin animator when going from
collapsed to expanded starts at 0.8f now, so that the searchbox does
not shrink momentarily when switched to the 9-patch, because of the
shadow.
- Fix clipping because of 9-patch; refactored logic for updating
the position and padding from the Activity into SearchFragment. This
was motivated in part because we want a padding at the top of this
list for the first item, but when the dialpad is shown we do not
want that padding.

Bug: 15343931

Conflicts:
res/layout/search_edittext.xml
res/values/dimens.xml
src/com/android/dialer/DialtactsActivity.java
src/com/android/dialer/list/SearchFragment.java

Change-Id: I8519e7e2ef5c75c0f170ff61ed22f44f95e07f74
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
82d6da53d993bb3a5cabf7c9f5f0c0e62488c15f 03-Jun-2014 Sai Cheemalapati <saicheems@google.com> Updated dialer animation in landscape.

Caching animations in constructor.
Dialer now flows in and out from/to the right.
Moved animation timing constants to constants file.

Change-Id: I287caa081c6576b347594d30ccce2b6d6526db1f
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
05b6267428450f190d04af187a206cc495da8995 03-Jun-2014 Andrew Lee <anwlee@google.com> DO NOT MERGE. Styling search to match redlines.

- This conflicts with some of Sai's changes, so will manually
cherrypick this CL back to master..
- Shift arrow/close icons.
- Use 20sp font in expanded search (causes baseline to shift down).
- Update action bar movement to use dialpad's interpolators and
durations.
- Smoothed out animations. Icons in the view being faded out are now
instantaneously set to GONE. The margin animator when going from
collapsed to expanded starts at 0.8f now, so that the searchbox does
not shrink momentarily when switched to the 9-patch, because of the
shadow.
- Fix clipping because of 9-patch; refactored logic for updating
the position and padding from the Activity into SearchFragment. This
was motivated in part because we want a padding at the top of this
list for the first item, but when the dialpad is shown we do not
want that padding.

Bug: 15343931
Change-Id: I7c3a96dd295c58c6955e6bd3e9d8cda151de4c3f
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
1e61380222440bb53a46a05907914207ce282386 02-Jun-2014 Sai Cheemalapati <saicheems@google.com> Matching landscape dialer to mockups.

Dialer now matches mockup in landscape mode.

Bug: 15386162
Change-Id: I8abb7a6c13bbeb1cb9210532e850010b196fe14e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
e9e0ba63e04202c8454d25d3af3d02f580a1a35d 30-May-2014 Andrew Lee <anwlee@google.com> When dragging, don't slide action bar if pane is closed.

Ideally it would probably be better to put this in the
ActionBarController. However, that requires substantially more
refactoring, and per an email earlier the implementation/behavior
might change and render that refactoring needless. So... opting
for the easier soltuion to fix this bug (which appears on drag).

Bug: 15313430
Change-Id: I3e6aaba5d0b1721ce2a035a10ea6073fe6527472
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
1d7ef6a59ae175d1577ca707e2682924a60d341d 30-May-2014 Santos Cordon <santoscordon@google.com> Update showCallScreen to use Telecomm (5/6)

Use TelephonyManager#showCallScreen instead of referencing ITelephony
directly. This way TelephonyManager can accurately route the calls to
Telecomm instead.

Bug: 15008165
Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
6b6fea2ce8c5e376d6e433e15f59d8a3013a34e1 30-May-2014 Andrew Lee <anwlee@google.com> Merge "Move the FAB in the dialpad down 4dp, in Dialer." into lmp-preview-dev
2423a2ff42989f7706f0da60961c1f79687db974 29-May-2014 Andrew Lee <anwlee@google.com> Move the FAB in the dialpad down 4dp, in Dialer.

Bug: 15328499
Change-Id: I71b227f3233ada7e3f1fd65bc9cce7c919b35cbb
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
710709da8389d401d3089bbf9836dfca527f15c3 29-May-2014 Yorke Lee <yorkelee@google.com> Fix for search UI remaining on screen after call is made

Also slide up the action bar after it is faded out - this is so that
it doesn't remain in the same position and intercept touches

Remove unneeded FragmentTransaction fadeout animation in exitSearchUI
that was causing jank when returning to the favorites screen

Bug: 15120649

Change-Id: Idcf96c2339603af09e1773729994d267158f70a0
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
2bbdd6a3d0ad2a67bf77b465d0a46c5d319d25b6 29-May-2014 Yorke Lee <yorkelee@google.com> Merge "Save state of dialpad in onSaveInstanceState" into lmp-preview-dev
50aba888d4563e755251d97c2ba11a96caee58b1 29-May-2014 Yorke Lee <yorkelee@google.com> Save state of dialpad in onSaveInstanceState

Bug: 15317467

Change-Id: I8f3a4968550b65ac977d0b137f692400834bb0ac
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
3c14bc3e128c9791387b8936ff1bc67a4e243d7f 29-May-2014 Andrew Lee <anwlee@google.com> Use common AnimationListenerAdapter instead of private class.

Bug: 15169764
Change-Id: I5c61d843256e328a0a492f842a069abc666c61a1
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f6c86e3b64812407ca965497da9d739e319428af 27-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add ActionBarController" into lmp-preview-dev
5253be0d57edd4cdf5fbc0a980188e13e009c083 22-May-2014 Yorke Lee <yorkelee@google.com> Add ActionBarController

* Collect all actionBar interactions within DialtactsActivity into
a single controller to ensure that it behaves more deterministically,
and fix some bugs with regards to actionBar interactions.

* Make sure that action bar correctly handles activity recreation
and destruction by saving its state

* Add unit tests and mock classes for ActionBarController

Bug: 14900155

Change-Id: I370831db425e1970b118f5d4fed3ce9297e3610d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
3443d4ae53a0c3dc51647b2306bdc5255043ca9c 24-May-2014 Yorke Lee <yorkelee@google.com> Increase size of actionBar

* Increase size of actionBar to 64dps and also add 8dps of padding
to the search box.

* Removed some unused styles

Bug: 15165670

Change-Id: Ia232431b2e637c9ccbdd0710f723f2063add524b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
bcef940ebcd0b85d2acef46b28e6622ed596f569 22-May-2014 Yorke Lee <yorkelee@google.com> Add shadow to expanded search box

Change-Id: I6fa3bdd20a4e1fe024e2edabc06d0f777571ae2c
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c7b2a0e30aba4505a041a9ad0f8889f4891d30f8 21-May-2014 Yorke Lee <yorkelee@google.com> Clean up some interactions in entering/exiting searchUI

Entering/exiting the search UI should now behave as a state machine
that is described as follows:

* Tapping on the search box or the dialpad brings up the search UI
* If back is pressed when in the search UI, one of three things happens
1) If the dialpad or IME is up and a query exists in the searchbox or the
dialpad, the IME/dialpad is hidden to allow the user to scroll search
results.
2) If the dialpad or IME is up and the query is empty, hide the dialpad and
IME, and exit the search UI.
3) If the dialpad or IME is not up and the query is not empty, clear the
search query and exit the search UI.

Change-Id: I9ba21227e1f1fcba4cde1101b3516009ee55da12
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
11ca39eae2bd8ed5c3e21e8c4fa09c9b2b6bda51 20-May-2014 Yorke Lee <yorkelee@google.com> Swap out search box contents when expanding

* Replace search box layout with two main child views - one for the
collapsed state and one for the expanded state.

* Add back button to the expanded state

* Replaced OnTouchListener on the searchbox with an OnClickedListener
Bug: 14900155
Change-Id: I4f07650ddf7e265ee5c4d1054c0bf0ff7494ab6b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
7206cebd7b267abbbc3de5d529ddf9a8f5ef176f 20-May-2014 Yorke Lee <yorkelee@google.com> Merge "Make searchbox expand when entering search UI"
ec489fb5d4bba57ccdfd24b48e26257294d29979 20-May-2014 Yorke Lee <yorkelee@google.com> Make searchbox expand when entering search UI

Bug: 14900155
Change-Id: Ib6e500ed55db90ad1fa13ba6dd0e141721331ba4
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
44e3daf13a1dfe5a0c7b4b0737f4000aea8fda27 19-May-2014 Andrew Lee <anwlee@google.com> Exit search UI before dialing.

Closes the search UI if there is no query when the dialpad fragment
is hidden. This is so that an empty search list is not shown after
the dialpad fragment is hidden, before the InCallUI is launched.

Change-Id: I580cea94ee1c9f21082eda0f6bff77c5c283282d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
ddfb00180a56f254857289a1b9be51556b2ac0f9 19-May-2014 Yorke Lee <yorkelee@google.com> Fix NPE in onTextChanged

Always initialize mVoiceSearchButton in onCreate to ensure that
it is never null

Change-Id: Ic478ae136f7bcbb28a49efce0f4ce2481dcd4945
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
d4cde838ea2bc23679e8656d04ed096e82d938d4 17-May-2014 Andrew Lee <anwlee@google.com> Add magnifying glass to search box.

Bug: 14900155
Change-Id: I12cf9aa36c7947e7ee8078de088882b2b3fbdae6
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
0d68dad4e0fde69e1a1e85efc19840363f4f9539 17-May-2014 Andrew Lee <anwlee@google.com> Merge "Fix fragment position in dialpad fade-out."
dbe9a8c18bec55943c2239f1381774a6a4ba2a59 17-May-2014 Andrew Lee <anwlee@google.com> Fix fragment position in dialpad fade-out.

Before, there's a noticeable gap in the bottom where the search
fragment is not fading in; it's fully transparent because the
position of the fragment was formerly updated too late. This
change updates the position earlier and tweaks the logic slightly.

Change-Id: I748c5cd9e9161007eccedb8f86d30011f2a30150
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
90374a77ce339f30a04fbb5d3c5faa0c84901c71 17-May-2014 Andrew Lee <anwlee@google.com> Only show search fragment if text is set to non-empty.

Bug: 14900155
Change-Id: I4beea8818b333d7bec2aa3fb17d9e2413e5f1965
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
e74a10eab5d8a43918a540bc42f0c159bdf5ab7c 16-May-2014 Andrew Lee <anwlee@google.com> Move actionbar menu into menu button in search edit text.

No longer use the built-in options menu functionality. Instead add
our own menu button and handling its clicks as menu item clicks
instead of options menu clicks.

Bug: 14900155
Change-Id: I1ed15df2fc2463f963c1825f6f52437c6122f539
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
b19038436ce8e4683eb19af02255eda9969a6a94 16-May-2014 Andrew Lee <anwlee@google.com> Open search ui on touch, and handle related scenarios.

- Add a touch listener to enter the search ui when the user touches
the search bar.
- Add a key listener to exit the search ui if the user closes the
keyboard while the text input is empty. SearchEditTextLayout was
added to facilitate this..
- Get rid of mFragmentsFrame, and control visibility of the
favorites view by adjusting the alpha of the lists framgent instead,
- Delete (hack) logic to change the background color.
- Enter the search ui whenever the dialpad is shown, and exit if it
is hidden and there is no query.
- Handle showing/hiding the actionbar depending on whether the
overlapping panel is displayed. This solution is a little hack, but
what seems to be a weird frameowrk interaction prevents the desired
solution of showing the action bar and then updating the hide offset.

Bug: 14900155
Change-Id: I4e06e4ed8eae49ef48317c99a556c51ff2a206a5
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f0a95146bb220db05dd2104e76cd3e1cbab8002a 16-May-2014 Andrew Lee <anwlee@google.com> Merge "Don't exit search ui if query string is empty."
99a570c40193320e8640f91a2eb4693e46153703 15-May-2014 Andrew Lee <anwlee@google.com> Don't exit search ui if query string is empty.

Bug: 14900155
Change-Id: Ic0c353d04491288428663c5350abffe514f96149
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
eead2a1eac894ff47cf10514c79cb717cc7db5b8 15-May-2014 Andrew Lee <anwlee@google.com> Merge "Remove redundant long-click listener."
752956e3add8b9fff107e1637120a74a61a5fead 15-May-2014 Andrew Lee <anwlee@google.com> Remove redundant long-click listener.

Change-Id: I73e8e7fdde21d7244aab21cae5ce8dd58b50de9d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c4643f77f287725f955f7f5cdd6686877e6b9923 15-May-2014 Andrew Lee <anwlee@google.com> Fix button alignment.

Bug: 14900155
Change-Id: I391fa09fe9c31e3cf07c99ccbcb060c083304641
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
86321098e4d1e00e6a9f32547d4ee10a717ac290 15-May-2014 Andrew Lee <anwlee@google.com> Merge "Cleanup dialpad show/hide logic."
2a58ab88d23238f252d5ccc6a6798f58b0e9ef56 15-May-2014 Andrew Lee <anwlee@google.com> Cleanup dialpad show/hide logic.

This is the first step in cleaning up the DialtactsActivity logic to
make it easier to transition between different states, and handle
the states in between (hopefully).

Originally, I thought to also block show/hide actions if there was
already a dialpad transition in progress, but in the end I did not
do this because it made the UI seem unresponsive.

- Delete custom predraw listener in DialpadFragment; it doesn't
appear to be used (?) and made the animation logic more confusing.
- Replace the fragment custom animations with our own animations,
which seem to perform better.
- Changed the animation xmls from objectAnimators to translates.
- Replaced isDialpadShowing with uses of mIsDialpadShown.
- Reorder show/hide logic. Now it is less parallel, but better
reflects the ordering/nature of fragment transactions.
- Reorder some methods to group them more logically.
- Pull out a helper method for updating the search fragment's
yTranslation.
- Pull out a helper method for updating the floating action bar.
- Delete predraw method in DialpadFragment; doesn't appear to be
used and caused.

Bug: 14900155
Change-Id: I768324b2293622ea43974f7f566eec9b11fb0d4e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
bf6591fc87b9955778f75686ef6b96e9a05ff9cc 14-May-2014 Yorke Lee <yorkelee@google.com> Merge "Simplify PhoneNumberPickerActionListener logic in DialtactsActivity"
4e28c1d175a1a9e565b974c85a54709f41ee925b 14-May-2014 Yorke Lee <yorkelee@google.com> Simplify PhoneNumberPickerActionListener logic in DialtactsActivity

Change-Id: Idea95bfc4a8c4fa3a451eaae677cd5150037f1b0
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
a73e189f57d70e81e6c5150d10032dae29846fd7 13-May-2014 Andrew Lee <anwlee@google.com> Use one ImageButton for the floating action button.

This means that the touch feedback transition can continue to
propagate, even while we're switching the icons.

Change-Id: Ia0c4e7bb4556c84cabccbda5f4c5861e25e2928f
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
0c66770b304d03367f093e1916cf565d9cf70146 12-May-2014 Andrew Lee <anwlee@google.com> Change search list background to grey.

- Change the layout parent background programatically in the activity,
when the dialpad is shown or hidden.
- Change the gradient above the dialpad fragment in Dialer too.
- Add directory header attrs color.

Change-Id: I97be52f07480ee5b4db55555ef4e4de0feb7d55a
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
861fd2a2737051843582c4261567342016853868 07-May-2014 Yorke Lee <yorkelee@google.com> Merge "Refactor drag and drop to work for entire Dialer layout"
2826619b274772beebc7369d5dfe616344f74b6f 01-May-2014 Yorke Lee <yorkelee@google.com> Refactor drag and drop to work for entire Dialer layout

Add a drag listener to the main dialer layout and manipulate
drag events correctly in DragDropController so that drag and
drop works throughout the main Dialer layout, rather than just the
speed dial fragment.

Also shift the remove view into dialtacts_mainlayout so that it can
continue receiving drag events.

Bug: 14393052

Change-Id: I90c26fee4fe681d0e237aa490185e850628e4cd0
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
cdfa6c66fa29ee0de675cd77b3bc72f6fba5ef0c 07-May-2014 Andrew Lee <anwlee@google.com> Modify the calls in Dialer to animate the dialpad in.

Bug: 14471388
Change-Id: I7b8b59ffd49f3e5512798cd6d9e86f2f9d0417d6
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c61d454d20e7d720c0dd343d0b7af0f3869227a2 01-May-2014 Yorke Lee <yorkelee@google.com> Fix floating action button alignment in Dialpad

Bug: 14443661
Change-Id: I43503936cfe097506f1fcc98df3f5a50f53c196e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
53a2230258d105299c7f1b8bbd25de54fed5d66a 30-Apr-2014 Yorke Lee <yorkelee@google.com> Use EditText for search in ActionBar

SearchView is too limited in terms of customizability for the
kind of UI styling we are trying to do. All we really need is a
space to enter text into, so use a EditText embedded in a custom
ActionBar view instead.

Bug: 13932490

Change-Id: I7081684c46b29b416dd6d0e5fcff249ee6f00405
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f42a1790c5bbf2be1ed71858897d72898e414235 26-Apr-2014 Yorke Lee <yorkelee@google.com> Apply padding to fragment view rather than ListView

This fixes the problem of pinned headers being hidden by the
actionbar.

Change-Id: Ieeeee69ab596f2c0cc167dcc70c3928a5fef782d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
cc4660d463daa11b969fd9b8bdd308ae3416c67a 24-Apr-2014 Yorke Lee <yorkelee@google.com> Animate floating action button

DialtactsActivity now implements ViewPager.OnPageChangeListener,
so that it can animate the floating action button in response
to page changed events in ListsFragments. Because ViewPagerTabs
also needs to listen to page changed events and ViewPager only
supports one OnPageChangeListener, ListsFragments is now in charge
of listening to page changed events from ViewPager and firing off
the same events to multiple OnpageChangedListeners

Bug: 14281810

Change-Id: Ic9b7ca8669d3a9cc0a997a84afe6788d6fd51bb9
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
4cbc973e15f98618638e12ea36651d15191e3301 24-Apr-2014 Andrew Lee <anwlee@google.com> Remove floating action bar constants and configurations method.

These have been moved to ContactsCommon, and are now invoked
in Dialer from ContactsCommon.

Bug: 13956531
Change-Id: If8f97d8700b6b9549c43636b4ceb64adf37e6894
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
a5d5cdf2ed131289943033cfd775dd34ffd7ff45 23-Apr-2014 Yorke Lee <yorkelee@google.com> Add floating dialpad action button

* Replace fake action bar at the bottom of the screen with a floating
action button which casts a shadow.

* Remove the now unused mDialpadOverflowMenu button in DialtactsActivity

* Modify dialpad layout to add a bottom row of buttons which provide
access to the add contact button and overflow menu

* Fix dialpad layout so the heights applied in XML are actually
respected - previously they were being ignored and each dialpad key
was being assigned the height of MATCH_PARENT

Bug: 13932988

Change-Id: I6e48c00c5ceeeffed142c3dd259e630d6daf8111
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
d999b71452baebec789f6f58f1955d30e834826d 24-Apr-2014 Yorke Lee <yorkelee@google.com> Rename classes

Renamed PhoneFavoriteFragment to SpeedDialFragment
Renamed PhoneFavoriteMergedAdapter to ShortcutCardsAdapter

Change-Id: I5b16ff576332b44c10e1abb44689147cd41c26b5
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
6a1461a86ad861b0e04333452e47cb81675459d5 22-Apr-2014 Yorke Lee <yorkelee@google.com> Add view call history at bottom of recents

Bug: 13936108

Change-Id: Ic688d65240dada75b014b6684d4bebed208551bd
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
efb2d9c2e32ca4ed434ff785c4b3d18c9e08db6d 18-Apr-2014 Yorke Lee <yorkelee@google.com> Use PhoneFavoritesTileAdapter directly in GridView

This CL moves the adapter that contains the speed dial contacts into
its own GridView that lives in PhoneFavoritesFragment. This is the
first step to splitting up PhoneFavoritesMergedAdapter into
a list of shortcuts and a grid of contacts, and also get rid of the
convoluted ContactTileRow logic within PhoneFavoritesTileAdapter, to
facilitate a future transition to RecyclerView.

* PhoneFavoritesTileAdapter now directly returns PhoneFavoriteTileViews
rather than ContactTileRows.
* Deleted a lot of unnecessary complicated logic within
PhoneFavoritesTileAdapter that had to do with ContactTileRows.
* Simplified and rewrote animation logic so that animations now perform
as expected within the GridView. In the future this may not be necessary
if RecyclerView is used.
* Rewrote layout/measurement logic for PhoneFavoriteTileView. It now
determines its height directly based on what its measured width is.
* Replaced PhoneFavoritesListView in PhoneFavoriteFragment with a
standard GridView
* Delete stale PhoneFavoriteTileAdapter tests

Notes:
Call shortcut cards are now temporarily missing due to this change

Bug: 13963734
Bug: 13933092
Bug: 13419223

Change-Id: I71e8970667589e4024d00e9af2c8b45c843c5db1
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
4acac9b820d00d4f666519de2dbee0f82e537a9e 18-Apr-2014 Yorke Lee <yorkelee@google.com> Remove AllContactsActivity

Bug: 14157588
Change-Id: I48342e9a5f78173f84967e3330add8fd87442bea
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
33932ff9433bcd172749d416c23655c8d8bdafc2 16-Apr-2014 Yorke Lee <yorkelee@google.com> Fix Dial intent interactions

Correctly apply actionbar height by retrieving it from
attribute in DialtactsActivity, instead of getActionBar.getHeight(),
which returns 0 if the actionbar hasn't been previously shown

Bug: 14111329

Change-Id: Ic940e3489317706b24b63afbf45fd37925f11c4b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
3c9e7cd12f28c7e79a4b2af442c32f2b519122f1 16-Apr-2014 Yorke Lee <yorkelee@google.com> Don't set search query immediately if searchview is null

The SearchView is assigned only in onCreateOptionsMenu, which
can happen after the dialpad query changes if the dialer is
launched via a DIAL intent. Make sure we assign the query
to the SearchView only after it is created.

Bug: 14111006
Change-Id: Ife504362684d8b5e2d3064bf971fabbebb878149
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
e00c9fe163d19ee380b922e3fcbe736216d78ccc 12-Apr-2014 Yorke Lee <yorkelee@google.com> Use ViewPager in main Dialer view

This change replaces PhoneFavoriteFragment with ListsFragment,
a fragment that contains a Viewpager that will eventually
contain 3 fragments - Speed Dial, Recents (an abridged call log) and
All Contacts. For now, only speed dial and all contacts are in the
viewpager due to the call log fragment not playing nice with being
embedded in a parent fragment.

ViewPagerTabs is a newly added custom view that serves as a indicator
for ViewPager tabs. It behaves similarly to the newly deprecated
ActionBar tabs, but can be placed anywhere on screen.

Bug: 13935070

Change-Id: I916c516dc295246b2a95de2f0dc726784c2ee0cc
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
86e21f733049560e77b92f17a58474312d72ec3e 03-Apr-2014 Yorke Lee <yorkelee@google.com> Add actionbar to Dialer

Initial changes to replace the fake actionbar affordances in Dialer
with an actual actionBar. This puts the dialer in an intermediate
hybrid state where we are now using the system actionbar for search,
but the searchview is not yet themed to look like our old search
bar, so this is definitely still WIP UI.

This CL retains the fake action bar at the bottom of the screen to
continue allowing quick access to call history while other changes
are underway, but replaces the searchview and the overflow menu
with framework provided actionbar functionality.

Other related changes:
* The searchview (in the top actionbar) is hidden when scrolling to
devote the entire screen area to the speeddial list
https://folio.googleplex.com/phone/L/0407/#/03.png
* Functionality provided by the fake overflow menu has been moved to
the real actionbar overflow menu
* Various modifications to child fragments/listviews to take into
account the existence of an actionbar
* Cleaned up unneeded styles and related-dead code

Bug: 13933082

Change-Id: Ifd855bd67af7bf2d2a403ef9556ade54e8d57ee6
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
09a727e47df21d00a2e6cd814f4a4bc895155047 11-Apr-2014 Yorke Lee <yorkelee@google.com> Merge "Use the unnormalized user-entered number when adding to contacts"
047bdb14e953c73d2594ea20b1f150221e965d66 11-Apr-2014 Yorke Lee <yorkelee@google.com> Fix for Add to contacts missing in dialpad overflow menu

Make sure to update Dialpad PopupMenu everytime the query is
changed.

Bug: 13982220
Change-Id: Ife97c2b39653982be2a3afa6d9f7efdf034c589a
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
466358780c0bd5cbb2c2300c321e94e60372b5e1 11-Apr-2014 Yorke Lee <yorkelee@google.com> Use the unnormalized user-entered number when adding to contacts

Bug: 13758021
Change-Id: Id0a7df07614a8e36824cafca253aa0ada8a4aece
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
13a54c7689f18363c873e966a9e4e9d76ed3ffa7 28-Mar-2014 Yorke Lee <yorkelee@google.com> Remove dead code

Change-Id: I6a48467f047d8e845d484fccb751d3a5de52066c
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
62e995c9bebc02c1a33ffb8d8df142b9a31cab1b 28-Mar-2014 Yorke Lee <yorkelee@google.com> Remove obsolete/dead code

* Remove obsolete/commented code for handling hardware search
buttons
* Simplify the logic to bring up the incall-screen directly if the
user hits the hardware call button while in a call.

Change-Id: I003c87c89017c1daa2e6fd68e0771aeefa19c846
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
8d5400093dc683030d3de2b1f4dce8fa0a9c9e10 27-Mar-2014 Yorke Lee <yorkelee@google.com> Fix crash when recreating activity and receiving dial intent

* Initialize all member variable button references at onCreate to
avoid potential NPEs
* Make sure we call mDialpadFragment.buildOptionsMenu only when
it is guaranteed to have been attached.

Bug: 13653973
Change-Id: I407072503cebaf77ec9ef86d8a7ab23302eed6d6
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
1dfa8ddc17a7f62f14d8435fd9712d1be0ebdf7e 25-Mar-2014 Yorke Lee <yorkelee@google.com> Fix NPE during activity recreation

Bug: 13630676
Change-Id: I3b68d5f21a4b77eab5b5493dcde670ad08cdc372
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
9e91bb0709f420a8c19c344965cc1410a38bccd5 06-Mar-2014 Yorke Lee <yorkelee@google.com> Fix overdraw in Dialer

* Set window background to null per framework advice to reduce
overdraw
* Remove unnecessary background layers
* Fix the slightly deeper gray background above the searchbox
Bug: 10446771

Change-Id: Ie11db155593c7ea2118141aec876da37be35a7d5
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
fb00cb8395f99842a41fd68980b2e87ae840c617 19-Mar-2014 Ihab Awad <ihab@google.com> Fix problem where swiping upward in overflow menu did not display the
correct options menu items.

b/13441681

Change-Id: If4f6970a4dd92e20ab1c04eae5228a0475bf445c
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
7eccf4559e3660da5715b69840b325fd7aa677a4 14-Mar-2014 Yorke Lee <yorkelee@google.com> Fade out favorites screen when dialpad is displayed

Bug: 13453829
Change-Id: Ief313d3da78350f9ce576a766ce7cd863aa3d180
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f24107b8ed2be6ba294f8be95a3636c7331b8a64 11-Mar-2014 Yorke Lee <yorkelee@google.com> Remove unneeded references to ContactsContract.Intents.UI

These private references are not used anymore and were probably
left behind during the Contacts/Dialer split

Bug: 6948882
Change-Id: Ibd6d0612164f7fc813cb10001b1da0eac4f7b63c
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
b0d197653fcdd2526ba9b85d613e4968ebbef2ab 05-Mar-2014 Yorke Lee <yorkelee@google.com> Fix jank in no favorites screen when showing/hiding dialpad

Reintroduce a spacer view (under the no favorites view) that is
the same height as the search box + its margins, so that
the no favorites view does not shift when the dialpad is shown/hidden

Bug: 13341743
Change-Id: I00171b5fd546e30394c95d31976483d124f75f3b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
94f490466f2b7f4d9d19c4628a56442ccf8a6adf 03-Mar-2014 Yorke Lee <yorkelee@google.com> Fix slight screen jank when sliding dialpad upwards

Apply the translation animation to mSearchAndRemoveViewContainer
(which houses the entire searchbox and its margins), so that the
translation takes into account the entire height of the searchbox
as well as its margins.

Also refactored hideSearchBar slightly to remove an unused codepath.

Bug: 13284310

Change-Id: I7b8873154059f616d8a52c4a0239ea6be89c8efc
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
526c0b832e27dc38a8dc6eae1f16c50acb51c6e8 27-Feb-2014 Ihab Awad <ihab@google.com> New appearance and look and feel for dialpad.

http://b/13189041

Change-Id: I91028c8fdee31c1f76610573a4396eb979c30170
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
a8ff9750831fcc276354ed80fad3b54316489383 24-Feb-2014 Tyler Gunn <tgunn@google.com> UX Changes: Dialer actionbar, tabs and searchbox.
See CL 423036 for the searchbox text changes.
Bug: 13167901
Change-Id: I6806cb27c19f7f0ca55394d70134f0c30c93446b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
3cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1 16-Jan-2014 Yorke Lee <yorkelee@google.com> Add drag to remove for favorites in Dialer

* Add remove view in dialtacts_activity.xml, and rearrange layout slightly
so that it takes up the same position in the layout as the search view
container. Contacts that are dragged to this remove view will be unstarred
and unpinned.

* Add drag event logic to the Remove View, so that when the user hovers a
contact over it, the UI will continue to respond. Previously, only the
PhoneFavoritesListView would detect touch events.

* Refactor DragDropController and OnDragDropListener into separate classes.
DragDropController performs the work of receiving drag/drop events from
multiple views, combining them, and then firing off callbacks as appropriate
to OnDragDropListeners. Each OnDragDropListener can then update their UI
or internal data model as necessary in response to the callbacks.

OnDragDropListener <----------------------------------------
^ |
| |
DialtactsActivity ---------------> RemoveView |
| | |
v | | callbacks
PhoneFavoriteListFragment |drag events |
| | |
v v |
PhoneFavoriteListView ------------> DragController--------
drag events |
| callbacks
v
PhoneFavoritesTileAdapter --> OnDragDropListener

* While in here, add a content description for the clear search button
Change-Id: I044ad1c5aa42c7686bde6bf5074095a4fe879bde
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
da0f9046b2457c8adc0b97896d7ea1e880eccf96 05-Dec-2013 Yorke Lee <yorkelee@google.com> Hide voice search button if intent cannot be handled

If the Google Search app is disabled (this only seems to be possible
on Nexus 4), the Dialer crashes if the voice search button is pressed.
This CL hides/shows the voice search button every time the dialer
is launched/resumed after checking to see if there exists an activity
that can handle the ACTION_RECOGNIZE_SPEECH intent.

A string to indicate that voice search is unavailable is also added
just in case the user ends up in a weird state where the button is
showing but clicking on it would throw an ActivityNotFoundException.

Bug: 12015318
Change-Id: Idd7ec2da422425dd95ae0060ebc9b85a2cf35fb0
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
edf798aaf0eec1e94e1dc889f929a68c9c89922f 05-Dec-2013 Yorke Lee <yorkelee@google.com> Always call through to super.onBackPressed in DialtactsActivity

moveTaskToBack is causing crashes in the Dialer when the back button is pressed.
This was legacy code that was unchanged in the new dialer. We should probably
just call through to super.onBackPressed regardless of whether or not the task
was at the top of the stack, to behave the same (navigation wise) as other apps.

Bug: 12015851
Change-Id: Ic0c3efb30b3874ad892b96a9fadd524313cfb782
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
41a24b477dd0c550eda011a1b591603a20b980be 14-Nov-2013 Yorke Lee <yorkelee@google.com> Color/layout tweaks for Dialer

Add search icon into search box
Change background of recent cards shortcut to whiter one
Whiten the action bar
Darken background color of list items
Reduce size of searchview text

Bug: 11654293
Change-Id: I204b14e752b40563a6f7ebdd1d61f10854b41100
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
62ee2244e5d80fed6f3408fbe5844be1e2c4cd98 08-Nov-2013 Yorke Lee <yorkelee@google.com> Fix possible FragmentManager NPE in Dialer

Bug: 11595442
Change-Id: I7859f61bf8b5eb6b6e14d5f18cf689613124ce6c
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
5f3ad54d27ab463e92ea557e1102bc1d34732adb 08-Oct-2013 Yorke Lee <yorkelee@google.com> Make enlarged actionbar invisible when showing dialpad

Bug: 11118584
Change-Id: Ia89c569f9c95912aeeef5c29cf6b6f140e7334dc
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
8e5c8b11eb9516fa9b8407e0aa16c0405b5e717e 01-Oct-2013 Yorke Lee <yorkelee@google.com> Fix brief flash when making a call from search

Perform the fragment transaction to hide search in onPause.
This prevents the brief flash that shows up in the time between
pausing the activity and starting the in-call UI, but also
ensures that we execute the transaction before onSaveInstance is called
to prevent b/10953115.

Bug: 10780429
Change-Id: I85b4c7e6719acede845d604087344401edc9ef3d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
3ed80a357d780310777178ad589d7771d4f7bf2d 28-Sep-2013 Yorke Lee <yorkelee@google.com> 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
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
b4680c5b453d0c4028b34bf9dcd28ec76922e095 27-Sep-2013 Yorke Lee <yorkelee@google.com> Revert "Fix brief flash when clicking on a search result to dial"

This reverts commit 02403e5cd7eb0f1cff85146013e33691e1dc2e8b.

Fixes bug: 10953115

Change-Id: Id52e794b6f48ccfeae00d1556cca9ab67378e47a
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
3487db78fd47ccecef4e6b86e5cacfc0a8e6ba83 27-Sep-2013 Yorke Lee <yorkelee@google.com> Don't do fragment transactions if fragment is destroyed

Bug: 10953115
Change-Id: Idf8107ca9b49b31d2209751a09daabadacfc752b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
da3e077e2472585f48d64a8f4e192de2b5f69f6a 26-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Add drag to open functionality to Dialer overflow menu" into klp-dev
ca19504ff58c91497885d9705905f7ab25e97ce0 26-Sep-2013 Yorke Lee <yorkelee@google.com> Don't call finish when calling from the dialpad

Change-Id: Ib5c98b51c4f3113e434208b83310754b825a197f
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
36c5413800ecd06d4d93a9e5333078fc7fbcf1d6 26-Sep-2013 Yorke Lee <yorkelee@google.com> Add drag to open functionality to Dialer overflow menu

Bug: 10904260
Change-Id: I18fef2f553ab2598c87972ed887b0221108957f8
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
02403e5cd7eb0f1cff85146013e33691e1dc2e8b 24-Sep-2013 Yorke Lee <yorkelee@google.com> Fix brief flash when clicking on a search result to dial

Delay the hiding of the search fragment so that the in-call ui has time
to show up.

Bug: 10780429
Change-Id: I0f44bbb10e221ad4480ed1acf6225e6d6b6411ce
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
669b608b31d468084bbae81ba8c51fec44814b18 18-Sep-2013 Yorke Lee <yorkelee@google.com> Fix regression: dialpad not being shown from dial intent

Bug: 10804039
Change-Id: I4449a1bc7997738e39c87493d0d038870b19597b
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
e288297636efc10164fc1d928f9cab3d7a07557a 11-Sep-2013 Alon Albert <aalbert@google.com> Merge "Google Specific Settings" into klp-dev
7f6c4a7da2fb0193760c24e8f9909f1a6abb0b21 11-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Hide dialpad after call is ended" into klp-dev
35127cdea7f9043626ae9d0c6becb31730d0b236 10-Sep-2013 Yorke Lee <yorkelee@google.com> Hide dialpad after call is ended

Bug: 10503894
Change-Id: Ic7a6a0a0fb54cb315a5b92f9998be9b8848c6137
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
b453e5b0ce106987c75901321ceba13ed111222c 11-Sep-2013 Alon Albert <aalbert@google.com> Google Specific Settings

Bug: 10675052

Change-Id: Idecf6f65e64a64e3728055a3f5785bc1e545eba6
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
2eafb7afc46135bbbf5a79b437df33cd0fb66c0b 10-Sep-2013 Yorke Lee <yorkelee@google.com> Clear dialpad when x is pressed

Bug: 10677739
Change-Id: I4b8f8dd51b42598391faf8588da022479097af89
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
3b82fc14c1d05a85e07e457c4d6eeb0e405b7eb3 09-Sep-2013 Yorke Lee <yorkelee@google.com> Hide voice search icon if search view is not empty

Bug: 10647502
Change-Id: Ic451c378a107789f08b08e32aff0d37dca002f8f
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
e142481570d7fbda5d035555fe217314e396ae90 05-Sep-2013 Yorke Lee <yorkelee@google.com> Add call shortcuts to phone number list adapters

* Add a new class DialerPhoneNumberListAdapter, which both
RegularSearchListADapter and SmartDialNumberListAdapter extend.
DialerPhoneNumberListAdapter allows the addition of pre-defined call
shortcuts at the end of the phone number list that can be toggled
on or off.

* For the SmartDialSearchFragment, the only shortcut that is available is
always the Add number to contacts shortcut.

* For the RegularSearchFragment, if the user enters a string that contains
all dialable numbers, it is treated as a phone number and the call directly
and add number to contacts shortcuts are enabled. Otherwise, it is treated
as a name, and only the add contact with a new name shortcut is enabled.

* Add a intent that allows the user to directly create a new contact
that has the name field pre-populated. This intent is used if the user
enters input that looks like a name in the search view.

Bug: 10339630
Change-Id: I2ae757ce505d85a8780d28d89e09fb7084c773b1
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
7a06c4462c9f0fabeff15be92854a40f286058f8 05-Sep-2013 Yorke Lee <yorkelee@google.com> Clear search view when call is made from search fragment

Bug: 10624384
Change-Id: Ia999f4b8ba697ad01a0e8a161fd1ec9ff3cc7d97
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
b207f8a073e8b3c001986b31c951f2c951cc631b 30-Aug-2013 Yorke Lee <yorkelee@google.com> Show bottom action bar throughout dialer

* Moved fake action bar to DialtactsActivity from PhoneFavoritesFragment
* Allow transitioning between search fragments
* Removed onPhoneFavoritesFragmentStarted listener now that it is no longer
needed

Bug: 10510200
Change-Id: Ie06a1ec08171f5c424a84d36709ca35100f2148d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
5e931977ba56a38db2e72785a4067b5a1fdb79c7 30-Aug-2013 Yorke Lee <yorkelee@google.com> Add All contacts option to overflow menu

Bug: 10348659
Change-Id: I354fc56fdcb63d0b03f6d66cfb4d85b7700e3545
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
2e5b34b14181f367ec90198f5cbcd39f261b7bf5 29-Aug-2013 Jay Shrauner <shrauner@google.com> Refactor SearchFragment

Refactor SearchFragment into a base SearchFragment and an
implementation RegularSearchFragment. This allows SmartDialSearchFragment
to inherit directly from the base.

Bug:
Change-Id: Iae9cd11ac733445c76d390c35fa778d942707b57
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
0baa98b5163f83a715b37e3cffe1488ac88ab049 22-Aug-2013 Yorke Lee <yorkelee@google.com> DialerDatabaseHelper related changes

Add properties table to dialer database
Database helper access is now performed through a
DatabaseHelperManager

Bug: 10414852

Change-Id: I2717a94faf1b79370f9307b4ea7d0c39b7a36cb5
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
311969c96e36da85118d4aabdddbd98e5ab6a3c8 26-Aug-2013 Yorke Lee <yorkelee@google.com> Fix build breakage due to missing method definition

Bug: 10328290
Change-Id: I59ad72aabbca9ded55981a3e411322c4a31c0c6d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f6673d3e5cbd10febea04f02035591ab15c5c7c0 24-Aug-2013 Yorke Lee <yorkelee@google.com> Hide dialpad fragment and exit search ui when phone number selected

Bug: 10328290
Change-Id: I3fc560f0727c493ae5f051320ea6abe4715f0e79
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
34bdf87700194c35ab8f43c001391bb2ac8bc993 15-Aug-2013 Yorke Lee <yorkelee@google.com> Make sure fragment manager isn't destroyed before calling commit

Bug: 10209937
Change-Id: Ib190a94e23de0869b721817e699aeaa861dbfde7
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c7d05be217de0c4fcb235591752990e1862ddc02 14-Aug-2013 Yorke Lee <yorkelee@google.com> Merge "Clean up todos for dialer" into klp-dev
598e9a685606fa18c49defca69ee9521eb4ed473 12-Aug-2013 Yorke Lee <yorkelee@google.com> Merge "Persist favorites clicked listener across activity destruction" into klp-dev
fce269a30e2ec112ea4c287d97e08ef7b3b31b89 12-Aug-2013 Yorke Lee <yorkelee@google.com> Clean up todos for dialer

* Remove account filter header container
* Remove frequent header position
* Move dialer database updating to DialtactsActivity

Change-Id: I8a6a092f25609537a47ffafb28aa4df9f55b1bd5
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
5781afe916100c4ed709e8edacac4a71db090108 12-Aug-2013 Yorke Lee <yorkelee@google.com> Persist favorites clicked listener across activity destruction

Bug: 10289904
Change-Id: I7282cd6c2a4c938131b88ab10d2fc73897c0b65c
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
63ea4cd19569c8d5ee6f9a7ce2c933d09359fc0b 12-Aug-2013 Yorke Lee <yorkelee@google.com> Add onPhoneNumberPickerActionListeners to search fragments

Fix regression (crash on phone number selected) caused by
https://googleplex-android-review.googlesource.com/#/c/341604/

Change-Id: I8bc6850b3b2809f9919edbdbdb308af0402d7035
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
ef2b7388569a94432278a617b528f628385fbb8c 10-Aug-2013 Yorke Lee <yorkelee@google.com> Improve fragment handling

* SmartDialSearchFragment now extends SearchFragment to avoid code
duplication
* Load search fragments dynamically instead of all at once on startup
* Don't always return the user to the favorites screen on resume
* Activity and fragment state persist across activity recreation

Bug: 10248520
Change-Id: I6bce83e22a8eced9783805ea5a924f34bae78a14
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c87896cd74290eba75d3ba3ee8a3f5bfe36b63fb 10-Aug-2013 Yorke Lee <yorkelee@google.com> Merge "Extract ShowAllContactsFragment and add it to its own activity" into klp-dev
8dd6200bef2eb07486f4c7e288941cfcfed35e79 09-Aug-2013 Yorke Lee <yorkelee@google.com> Extract ShowAllContactsFragment and add it to its own activity

Bug: 10244050
Change-Id: I9c815aecc3fe9f0db239129749fb5be3c73f51be
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
0d391b481d691fb26fb114a82d98100a5804ca62 10-Aug-2013 Yorke Lee <yorkelee@google.com> Hide "Clear frequents" setting instead of just disabling it

Change-Id: I9d9a4ecd958c1a1d83906388bb1cc25339278011
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
7b3b10b6cb5596b61ae781ef7932c12d6761fc23 10-Aug-2013 Yorke Lee <yorkelee@google.com> Merge "Clean up todos in Dialer" into klp-dev
f420a5344995b2c450379159f679809690bc9880 10-Aug-2013 Yorke Lee <yorkelee@google.com> Clean up todos in Dialer

Change-Id: I336373f089d1956606451e320c103d53bd737264
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
ea695cb0f877ad49a98df184efe982de83ed09d7 09-Aug-2013 Yorke Lee <yorkelee@google.com> Handle dialpad animations better

This change prevents the dialpad from animating in when
the dialer is launched directly with a dial intent.

Change-Id: I6d7378de0484dcdadecbbc0e9c25d4c8ed1e3800
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
8898cd0577d41cfa4e6acf785c9e904bd71fbdfd 08-Aug-2013 Yorke Lee <yorkelee@google.com> Removing and renaming classes from Dialer

* No code was changed, just either removed or renamed
* Reshuffled a couple of ids around in dialpad_fragment to fix some
compile time errors that somehow weren't caught before
Change-Id: I9e2381edfb14b0940015deb8cbd94786a1242f43
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
243cc85743504c7ac444e988d4e8ab6cbe8a7716 08-Aug-2013 Yorke Lee <yorkelee@google.com> Fix build break due to duplicate method definition

Change-Id: Id539c6f0a38d7081569fd39e77c3a095466be6ef
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
2a11de92adf2b01918e4cb805852c87fe80429df 07-Aug-2013 Yorke Lee <yorkelee@google.com> Merge "Integrate pinning support with drag and drop UI"
55f3ec9f882b2389e498ea68f68ce8670c5d4c73 01-Aug-2013 Yorke Lee <yorkelee@google.com> Integrate pinning support with drag and drop UI

* Added the concept of a blank entry. This is used to keep the
rest of the list in place while a contact is being dragged.
Blank entries appear as invisible views for now.

* Added the concept of a DEMOTED contact, which is used to
indicate that a contact should never be displayed in the favorites
list.

* Pinned position management methods and tests
Added two methods to handle assigning of contact positions based
on their pinned positions, as well as reflowing of contacts
when a contact is pinned at a new position.

The assigning of contact positions works as defined below:
1) All contacts with pinned positions are assigned their defined
pinned positions as necessary.
2) If two contacts have been given the same pinned position, they are
ranked based on the order returned from the ContactsProvider (
alphabetical by display name). The second contact is then pushed to
the next position, bumping all corresponding pinned contacts down
by one spot as necessary.
3) If there is a contact with a pinned position that is greater than
the number of starred + frequent contacts (this can happen if user clears
frequents, for example), then it is simply treated as an unpinned contacts.
4) All unpinned contacts flow to fill in the gaps between pinned contacts.

The reflowing of contacts works as defined below:
1) Pinning a contact at a new spot replacing an unpinned contact simply
pins it at that position.
2) Pinning a contact at a new spot where there was already an existing
pinned contact bumps that replaced pinned contact down by one spot
alongside all subsequent pinned contacts as necessary.

I.e. contact A is pinned at position 2.
Before: [A][1][P][P][4][P] After: [0][1][A][P][P][P]

3) If there is no more space at the end of the list to bump the pinned
contacts one spot further, then the replaced pinned contacts will shift
to the left to take the space of the original moved contact.

I.e. contact A is pinned at position 3.
Before: [A][1][P][P][P][P] After: [0][P][P][A][P][P]

* We no longer perform dynamic updates of the in-memory list.
Instead, when a contact is dropped at a new location, the new
positions are sent to the ContactsProvider, which updates the database
and notifies the adapter that there is a new cursor with updated data.
The new list of ContactEntries is then reconstructed from this new cursor.

Note that animation behavior with the newly introduced pinned contacts
is pretty janky looking - Instead of flowing together with the rest of the
unpinned contacts, pinned contacts should remain in position and not animate
on a dataset change. Likewise for empty contacts. In order to support this,
the animation logic will have to be rewritten to take into account
not just soley where the dragged contact was dropped, but also the old and new
position of each and every single contact in the list, before and after
the database refresh.

Change-Id: I5c9542a7fec529f5d965eebe76acbebe1fc10357
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
31a760be9135b5ef05e504dbd1594e1617af0326 26-Jul-2013 Jay Shrauner <shrauner@google.com> Add GAL support to Dialer

Add BIND_DIRECTORY_SEARCH permission to manifest. Use new methods
for GAL support. Change SmartDialing cursor and adapter to use
PhoneNumberListAdapter projections directly.

Bug:
Change-Id: I5f8181cfeec7adab4865e680ebc85ba2b476fc39
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
98702de246d42c844fabdb8a1f3407bf1747d379 06-Aug-2013 Yorke Lee <yorkelee@google.com> Properly show dialpad fragment on first launch if needed

Bug: 10205058
Change-Id: If7eb79b77357a81b17bdff719939debd71544bc4
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f74011e7a9b4007f6795ecee5adc2739d5fad4e6 02-Aug-2013 Yorke Lee <yorkelee@google.com> Initial cleanup of unused old dialer code

Removed unused classes and renamed NewDialpadFragment to DialpadFragment.
Removed some unused static imports

Change-Id: If16a8bfe8cc113a570514b6d0edd87cb946758fa
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c3766338b312f9c8a6bdb2facaf4b0a4bd199de4 31-Jul-2013 Yorke Lee <yorkelee@google.com> Switch from old dialer to new dialer

Change-Id: I51351f252338eee4d0be5723beafc044786b801e
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
f78d3444bd50cf3c4ddccff67b1d04422fa65f6d 29-May-2013 Jay Shrauner <shrauner@google.com> Use TelephonyManager instead of ITelephony

Switch to using public TelephonyManager calls (needed for unbundling).

Bug: 6948882
Change-Id: I301590efa5c45dfc3d31a16181694941a2bee092
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
9c1e0653addc1fff03601289a9f9a57b1daeaf57 24-May-2013 Christine Chen <christinech@google.com> Create backup agent for the Dialer app.

- Currently only the active tab is being backed up.
- More settings may be added later.

Change-Id: Id66565029be751beae8b58d4cc054f8d2d16ceea
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
c341db0532d8b60ca29aa0becf05a4eec9bdc43e 04-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix for bug #8146846 Phone App should be mirrored for RTL languages

- replace left/right properties with start/end ones (Dialer will never be unbundled)
- add mirrored version of some drawables
- update AndroidManifest

Change-Id: Ia7f5b6ad13dd75fe42f1ee763dda5ab18e2d92c7
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
073b5cf341964796ccf082d30aff63225d3adb28 07-Dec-2012 Chiao Cheng <chiaocheng@google.com> Add notification to "add contacts" when no activity found.

If a user disables the contacts application, the "add contact" option will
no longer work. Add a notification to inform them that they need to enable
the contact app to use the feature.

Bug: 7694569
Change-Id: I1aad7b1396f624461083cfab7ba470f9d4ac25ce
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
8efbcf920eeebc826c18b3c474e9c62b77dcd232 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving depedencies of DialtactsActivity into ContactsCommon.

This completes the clean-up of class depedencies for DialtactsActivity in
the Dialer.

Bug: 6993891
Change-Id: I86389308e9fe29aeb835b77a9f3d3a4a308bf690
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
82d544d5a50499be26861ed46d9d51dd89710f03 30-Nov-2012 Chiao Cheng <chiaocheng@google.com> Further clean-up of PhoneFavoriteFragment in Dialer app.

Moving dependencies of Dialer PhoneFavoriteFragment. Mostly filtering
dependencies.

Bug: 6993891
Change-Id: I1789580470dd753ffdcb141e5ab827c88369bb3d
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
963216bccf27ecba7c8917401f1fc8e30e67dd51 27-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move AccountTypeManager to ContactsCommon.

Moving AccountTypeManager to ContactsCommon so it can be shared by Contacts
and Dialer.

Bug: 6993891
Change-Id: I399de7f92f86270740db51efb32a136b413161c5
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
291e976e870d05ec9dd9d8286fb7291c0a76a523 06-Nov-2012 Chiao Cheng <chiaocheng@google.com> Change dial pad to show chooser onStart instead of onCreate.

This fixes the problem where the chooser is not shown when the dialpad is
started and pushed to recents before a call comes in. When the call comes
and dial pad is selected from recents, the dialpad is shown. Instead, we
should be showing the chooser so the user has the option of getting back
into the call.

Bug: 5761141
Change-Id: I315117c6607dbb71e5359cf98785591d20c21881
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
1429f1a5c2b993a5013bfda7cfd75a2c43ead2bf 02-Nov-2012 Chiao Cheng <chiaocheng@google.com> Moving ContactListItemView and dependent classes.

Further clean-up of PhoneFavoriteFragment in Dialer app to move all necessary
dependencies into Contacts Common package.

Bug: 6993891
Change-Id: I55c871fab9556ce4cc94ccc15716304810c65a28
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
9c5fe4420bc1a1fe4edcac99e1f73b13bca63fa2 31-Oct-2012 Chiao Cheng <chiaocheng@google.com> Moving PhoneNumberInteraction from Contacts.

Bug: 6993891
Change-Id: Id4701c00455de609850a5afea74e68c6bd84cbb3
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
603ff6858d321e8265b3af6363a63df2827e0334 25-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move TransactionSafeActivity into Contacts common.

Also added ContactUpdateService so PhoneNumberInteractions can use it
in a coming CL.

Bug: 6993891
Change-Id: If83ec9112bb65b9c885d773d7daa0c7dacecb6a5
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
35071c06d1587942f5a66c8f12e6247e8f904d26 16-Oct-2012 Chiao Cheng <chiaocheng@google.com> Removing contacts dependencies from CallDetailActivity.

Bug: 6993891
Change-Id: I3ef54efc0ff92367ea4f9b68c1629a99d90ff22c
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
9554500572ba82fbd7adb0a1637206ef870ef09e 15-Oct-2012 Chiao Cheng <chiaocheng@google.com> Changing com.android.contacts.R to com.android.dialer.R.

Bug: 6993891
Change-Id: I921ec71fffbd4d4a058bab29ded8a6ac62adfb70
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
9d4f3b20793a007b4489547aa40fc1049d0d8fef 06-Sep-2012 Chiao Cheng <chiaocheng@google.com> Moving resources from Contacts to Dialer.

- Also moving some shared utilities.

Bug: 6993891
Change-Id: I5fa18d26e4f5423f4d3f3450b8f3e3dacbfb947a
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
91197049c458f07092b31501d2ed512180b13d58 24-Aug-2012 Chiao Cheng <chiaocheng@google.com> Moving more classes from contacts into dialer.

- These classes are only used by dialer code.
- Fixed import order.

Bug: 6993891
Change-Id: I7941a029989c4793b766fdc77a4666f9f99b750a
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java
94b10b530c0fc297e2974e57e094c500d3ee6003 18-Aug-2012 Chiao Cheng <chiaocheng@google.com> Initial move of dialer features from contacts app.

Bug: 6993891
Change-Id: I758ce359ca7e87a1d184303822979318be171921
/packages/apps/Dialer/src/com/android/dialer/DialtactsActivity.java