docs say not to call cursor.close -- so don't.

This commit is contained in:
Eric House 2012-12-27 20:38:31 -08:00
parent 8bba5d6106
commit a6586b6131

View file

@ -23,28 +23,22 @@ package org.eehouse.android.xw4;
import android.app.Activity; import android.app.Activity;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.app.Dialog; import android.app.Dialog;
import android.content.ContentResolver;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
import android.database.Cursor; import android.database.Cursor;
import android.net.Uri; import android.net.Uri;
import android.os.Bundle; import android.os.Bundle;
import android.provider.ContactsContract.CommonDataKinds.Phone; import android.provider.ContactsContract.CommonDataKinds.Phone;
import android.provider.ContactsContract.CommonDataKinds;
import android.provider.ContactsContract; import android.provider.ContactsContract;
import android.text.Editable;
import android.text.TextWatcher;
import android.text.method.DialerKeyListener; import android.text.method.DialerKeyListener;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.CompoundButton; import android.widget.CompoundButton;
import android.widget.ImageButton; import android.widget.ImageButton;
import android.widget.ListView;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Comparator; import java.util.Comparator;
import java.util.Iterator; import java.util.Iterator;
import junit.framework.Assert;
public class SMSInviteActivity extends InviteActivity { public class SMSInviteActivity extends InviteActivity {
@ -275,7 +269,6 @@ public class SMSInviteActivity extends InviteActivity {
USE_IMMOBILE_ACTION ); USE_IMMOBILE_ACTION );
} }
} }
cursor.close();
} }
} // addPhoneNumbers } // addPhoneNumbers