From bcdccd00a2231e912fb96d3170225ffaa9ef6608 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Fri, 24 Jun 2016 20:39:57 +0200 Subject: code cleanup --- .../eu/siacs/conversations/ui/ContactDetailsActivity.java | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/main') diff --git a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java index b7b76c3c5..88ea44de4 100644 --- a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java @@ -235,18 +235,6 @@ public class ContactDetailsActivity extends XmppActivity implements OnAccountUpd this.showLastSeen = preferences.getBoolean("last_activity", true); } - private void share() { - Intent shareIntent = new Intent(); - shareIntent.setAction(Intent.ACTION_SEND); - shareIntent.putExtra(Intent.EXTRA_TEXT, getShareableUri()); - shareIntent.setType("text/plain"); - try { - startActivity(Intent.createChooser(shareIntent, getText(R.string.share_uri_with))); - } catch (ActivityNotFoundException e) { - Toast.makeText(this, R.string.no_application_to_share_uri, Toast.LENGTH_SHORT).show(); - } - } - @Override public boolean onOptionsItemSelected(final MenuItem menuItem) { final AlertDialog.Builder builder = new AlertDialog.Builder(this); @@ -288,9 +276,6 @@ public class ContactDetailsActivity extends XmppActivity implements OnAccountUpd startActivity(intent); } break; - case R.id.action_share: - share(); - break; case R.id.action_block: BlockContactDialog.show(this, xmppConnectionService, contact); break; -- cgit v1.2.3