From 7197d513a3a2142680de69738d7e1e6a66fa4ea2 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Tue, 5 Sep 2017 12:52:50 -0700 Subject: [PATCH] Add target for 'who can see this' profile link // FREEBIE --- res/layout/profile_create_activity.xml | 2 +- .../securesms/CreateProfileActivity.java | 22 +++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/res/layout/profile_create_activity.xml b/res/layout/profile_create_activity.xml index 90800b5271..0f8865c658 100644 --- a/res/layout/profile_create_activity.xml +++ b/res/layout/profile_create_activity.xml @@ -55,7 +55,7 @@ { + skipButton.setOnClickListener(view -> { if (nextIntent != null) startActivity(nextIntent); finish(); }); + + informationLabel.setOnClickListener(view -> { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setData(Uri.parse("https://support.signal.org/hc/en-us/articles/115001434171")); + + if (getPackageManager().queryIntentActivities(intent, 0).size() > 0) { + startActivity(intent); + } + }); } private void initializeProfileName(boolean excludeSystem) {