use LiveData in ViewKeyAdvActivity

This commit is contained in:
Vincent Breitmoser
2018-06-24 00:02:05 +02:00
parent d57a409fac
commit 2d1ff8cdcc
19 changed files with 409 additions and 859 deletions

View File

@@ -322,7 +322,7 @@ public class ContactHelper {
return new ArrayList<>(names);
}
public Uri dataUriFromContactUri(Uri contactUri) {
public Long masterKeyIdFromContactsDataUri(Uri contactUri) {
if (!isContactsPermissionGranted()) {
return null;
}
@@ -332,7 +332,7 @@ public class ContactHelper {
if (contactMasterKey != null) {
try {
if (contactMasterKey.moveToNext()) {
return KeychainContract.KeyRings.buildGenericKeyRingUri(contactMasterKey.getLong(0));
return contactMasterKey.getLong(0);
}
} finally {
contactMasterKey.close();