use notification uris mostly correctly

This commit is contained in:
Vincent Breitmoser
2018-07-02 13:44:07 +02:00
parent a31c35a4ad
commit 6789aee8d1
11 changed files with 31 additions and 20 deletions

View File

@@ -100,7 +100,7 @@ public class RemoteDeduplicateActivity extends FragmentActivity {
public LiveData<List<UnifiedKeyInfo>> getKeyInfoLiveData(Context context) {
if (keyInfoLiveData == null) {
keyInfoLiveData = new GenericLiveData<>(context, null, () -> {
keyInfoLiveData = new GenericLiveData<>(context, () -> {
KeyRepository keyRepository = KeyRepository.create(context);
return keyRepository.getUnifiedKeyInfosByMailAddress(duplicateAddress);
});

View File

@@ -106,7 +106,7 @@ public class RemoteSelectAuthenticationKeyActivity extends FragmentActivity {
public LiveData<List<UnifiedKeyInfo>> getKeyInfoLiveData(Context context) {
if (keyInfoLiveData == null) {
keyInfoLiveData = new GenericLiveData<>(context, null, () -> {
keyInfoLiveData = new GenericLiveData<>(context, () -> {
KeyRepository keyRepository = KeyRepository.create(context);
return keyRepository.getAllUnifiedKeyInfoWithSecret();
});

View File

@@ -135,7 +135,7 @@ public class RemoteSelectIdKeyActivity extends FragmentActivity {
public LiveData<List<UnifiedKeyInfo>> getSecretUnifiedKeyInfo(Context context) {
if (keyInfo == null) {
KeyRepository keyRepository = KeyRepository.create(context);
keyInfo = new GenericLiveData<>(context, null, keyRepository::getAllUnifiedKeyInfoWithSecret);
keyInfo = new GenericLiveData<>(context, keyRepository::getAllUnifiedKeyInfoWithSecret);
}
return keyInfo;
}