Example usage for android.support.v4.util LongSparseArray clone

List of usage examples for android.support.v4.util LongSparseArray clone

Introduction

In this page you can find the example usage for android.support.v4.util LongSparseArray clone.

Prototype

public LongSparseArray<E> clone() 

Source Link

Usage

From source file:com.kaliturin.blacklist.fragments.AddContactsFragment.java

protected void addContacts(List<Contact> contacts, LongSparseArray<ContactNumber> singleContactNumbers) {
    // if permission is granted
    if (!Permissions.notifyIfNotGranted(getContext(), Permissions.WRITE_EXTERNAL_STORAGE)) {
        ContactsWriter writer = new ContactsWriter(contactType, contacts, singleContactNumbers.clone());
        writer.execute();//w  ww  .j a  v a  2 s. c  o  m
    }
}