Merge pull request #790 from deltachat/disable-invite

disable invite activity for now
This commit is contained in:
björn petersen
2019-03-26 18:07:19 +01:00
committed by GitHub
2 changed files with 5 additions and 6 deletions
@@ -147,8 +147,11 @@ public class ApplicationPreferencesActivity extends PassphraseRequiredActionBarA
.setOnPreferenceClickListener(new CategoryClickListener(PREFERENCE_CATEGORY_CHATS));
this.findPreference(PREFERENCE_CATEGORY_ADVANCED)
.setOnPreferenceClickListener(new CategoryClickListener(PREFERENCE_CATEGORY_ADVANCED));
this.findPreference(PREFERENCE_CATEGORY_INVITE)
.setOnPreferenceClickListener(new CategoryClickListener(PREFERENCE_CATEGORY_INVITE));
Preference invitePreference = this.findPreference(PREFERENCE_CATEGORY_INVITE);
invitePreference.setVisible(false);
invitePreference.setOnPreferenceClickListener(new CategoryClickListener(PREFERENCE_CATEGORY_INVITE));
this.findPreference(PREFERENCE_CATEGORY_HELP)
.setOnPreferenceClickListener(new CategoryClickListener(PREFERENCE_CATEGORY_HELP));
@@ -764,10 +764,6 @@ public class ConversationFragment extends Fragment
@Override
public void onInviteSharedContactClicked(@NonNull List<Recipient> choices) {
if (getContext() == null) return;
// ContactUtil.selectRecipientThroughDialog(getContext(), choices, locale, recipient -> {
// CommunicationActions.composeSmsThroughDefaultApp(getContext(), recipient.getAddress(), getString(R.string.InviteActivity_lets_switch_to_signal, "https://sgnl.link/1KpeYmF"));
// });
}
}