mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-26 16:04:07 +08:00
issue -> issueUrl
This commit is contained in:
parent
71bb8cc75d
commit
bf5527a82d
@ -92,15 +92,12 @@ public class SingleIssueBottomSheetFragment extends BottomSheetDialogFragment {
|
|||||||
instanceUrlWithProtocol = tinyDB.getString("instanceUrlWithProtocol");
|
instanceUrlWithProtocol = tinyDB.getString("instanceUrlWithProtocol");
|
||||||
}
|
}
|
||||||
|
|
||||||
//get issue number
|
//get issue Url
|
||||||
String issue = tinyDB.getString("issueNumber");
|
String issueUrl = instanceUrlWithProtocol + "/" + repoFullName + "/issues/" + tinyDB.getString("issueNumber");
|
||||||
|
|
||||||
//combine
|
|
||||||
issue = instanceUrlWithProtocol + "/" + repoFullName + "/issues/" + issue;
|
|
||||||
|
|
||||||
// copy to clipboard
|
// copy to clipboard
|
||||||
ClipboardManager clipboard = (ClipboardManager) getContext().getSystemService(android.content.Context.CLIPBOARD_SERVICE);
|
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);
|
clipboard.setPrimaryClip(clip);
|
||||||
|
|
||||||
dismiss();
|
dismiss();
|
||||||
|
Loading…
Reference in New Issue
Block a user