1
0
mirror of https://codeberg.org/gitnex/GitNex synced 2024-12-23 00:48:57 +01:00

issue -> issueUrl

This commit is contained in:
6543 2019-09-29 00:10:28 +02:00
parent 71bb8cc75d
commit bf5527a82d
No known key found for this signature in database
GPG Key ID: A1CA74D27FD13271

View File

@ -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();