From bf5527a82d4ed17cc4a560cfe0d683beb0c85569 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 29 Sep 2019 00:10:28 +0200 Subject: [PATCH] issue -> issueUrl --- .../gitnex/fragments/SingleIssueBottomSheetFragment.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/fragments/SingleIssueBottomSheetFragment.java b/app/src/main/java/org/mian/gitnex/fragments/SingleIssueBottomSheetFragment.java index fd41d6f6..363c1d1b 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/SingleIssueBottomSheetFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/SingleIssueBottomSheetFragment.java @@ -92,15 +92,12 @@ public class SingleIssueBottomSheetFragment extends BottomSheetDialogFragment { instanceUrlWithProtocol = tinyDB.getString("instanceUrlWithProtocol"); } - //get issue number - String issue = tinyDB.getString("issueNumber"); - - //combine - issue = instanceUrlWithProtocol + "/" + repoFullName + "/issues/" + issue; + //get issue Url + String issueUrl = instanceUrlWithProtocol + "/" + repoFullName + "/issues/" + tinyDB.getString("issueNumber"); // copy to clipboard ClipboardManager clipboard = (ClipboardManager) getContext().getSystemService(android.content.Context.CLIPBOARD_SERVICE); - ClipData clip = ClipData.newPlainText("issue", issue); + ClipData clip = ClipData.newPlainText("issueUrl", issueUrl); clipboard.setPrimaryClip(clip); dismiss();