Fixing delete contact from contact detail view
This commit is contained in:
parent
ddd7044bd8
commit
775ee4d3e1
3 changed files with 3 additions and 26 deletions
|
@ -178,6 +178,7 @@ android.applicationVariants.all { variant ->
|
|||
"${adb} shell pm grant ${applicationId} android.permission.CAMERA".execute()
|
||||
"${adb} shell pm grant ${applicationId} android.permission.READ_PHONE_STATE".execute()
|
||||
"${adb} shell pm grant ${applicationId} android.permission.READ_CONTACTS".execute()
|
||||
"${adb} shell pm grant ${applicationId} android.permission.WRITE_CONTACTS".execute()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -489,6 +489,7 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
|
|||
String[] args = new String[] { getAndroidId() };
|
||||
changesToCommit.add(ContentProviderOperation.newDelete(ContactsContract.RawContacts.CONTENT_URI).withSelection(select, args).build());
|
||||
save();
|
||||
ContactsManager.getInstance().delete(getAndroidId());
|
||||
}
|
||||
if (isLinphoneFriend()) {
|
||||
deleteFriend();
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
package org.linphone;
|
||||
|
||||
import static android.content.Intent.ACTION_MAIN;
|
||||
|
||||
import org.linphone.LinphoneService;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
/**
|
||||
* @author Sylvain Berfini
|
||||
*/
|
||||
public class ZShutdownTestEnv extends SampleTest {
|
||||
|
||||
@SmallTest
|
||||
@MediumTest
|
||||
@LargeTest
|
||||
public void testZShutDownLinphoneCore() {
|
||||
LinphoneTestManager.destroy();
|
||||
aContext.stopService(new Intent(ACTION_MAIN).setClass(aContext, LinphoneService.class));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue