diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-06-24 20:39:57 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-06-24 20:39:57 +0200 |
commit | bcdccd00a2231e912fb96d3170225ffaa9ef6608 (patch) | |
tree | 317d7a4cf366e4c72aad1ac3ef5a4e2a2b67a1f1 /src/main | |
parent | 0f42bf000de81473ba13a5bbd542e5099e8bea05 (diff) |
code cleanup
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java | 15 |
1 files changed, 0 insertions, 15 deletions
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; |