Copy directory list into new list to prevent modifications.

Since lists are passed by reference, if the directory list passed into
RemoteContactsCursorLoader was modified before #lodInBackground was called, the
directory list would change and crash when compared to the list of cursors.

Since directory lists are small, there shouldn't be any memory issues with
copying the list.

Additionally, this CL adds some logging to the new Search Fragment.

Bug: 66902071,66902062
Test: RemoteContactsCursorLoaderTest
PiperOrigin-RevId: 171063035
Change-Id: Id2faa542805da4167fc7045e6fbe71d02c644ab6
3 files changed
tree: 4fc8dd91c8790f766f2554a2d21077e7b0f5a747
  1. assets/
  2. java/
  3. Android.mk
  4. AndroidManifest.xml
  5. CONTRIBUTING
  6. LICENSE