From 31d4e5260f3c6b4c0fc723674abb98bbe96796ce Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sun, 9 Dec 2018 21:53:05 +0100 Subject: [PATCH] add missing components to profile activity --- res/values/strings.xml | 3 ++ res/xml/recipient_preferences.xml | 17 +++++--- .../RecipientPreferenceActivity.java | 41 ++++++------------- 3 files changed, 27 insertions(+), 34 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 418dae10f..45537b12e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1523,5 +1523,8 @@ Tap to open. Network unavailable. Draft + Contact + Encryption + Edit name diff --git a/res/xml/recipient_preferences.xml b/res/xml/recipient_preferences.xml index 949ddbf67..8e2f62566 100644 --- a/res/xml/recipient_preferences.xml +++ b/res/xml/recipient_preferences.xml @@ -32,12 +32,19 @@ - + - + + + + + >() { -// @Override -// public void onSuccess(Optional result) { -// if (result.isPresent()) { -// if (identityPreference != null) identityPreference.setOnPreferenceClickListener(new IdentityClickedListener(result.get())); -// if (identityPreference != null) identityPreference.setEnabled(true); -// } else if (canHaveSafetyNumber) { -// if (identityPreference != null) identityPreference.setSummary(R.string.RecipientPreferenceActivity_available_once_a_message_has_been_sent_or_received); -// if (identityPreference != null) identityPreference.setEnabled(false); -// } else { -// if (identityPreference != null) getPreferenceScreen().removePreference(identityPreference); -// } -// } -// -// @Override -// public void onFailure(ExecutionException e) { -// if (identityPreference != null) getPreferenceScreen().removePreference(identityPreference); -// } -// }); - getPreferenceScreen().removePreference(identityPreference); } }