mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 18:29:23 +02:00
hide link border after visiting
This commit is contained in:
parent
01594d8cf9
commit
c147a8cf87
3 changed files with 77 additions and 43 deletions
|
@ -53,6 +53,8 @@ class ProcessHyperlinkAction extends FBAction {
|
|||
public void run() {
|
||||
final ZLTextElementRegion region = Reader.getTextView().getSelectedRegion();
|
||||
if (region instanceof ZLTextHyperlinkRegion) {
|
||||
Reader.getTextView().hideSelectedRegionBorder();
|
||||
Reader.repaintView();
|
||||
final ZLTextHyperlink hyperlink = ((ZLTextHyperlinkRegion)region).Hyperlink;
|
||||
switch (hyperlink.Type) {
|
||||
case FBHyperlinkType.EXTERNAL:
|
||||
|
@ -67,8 +69,9 @@ class ProcessHyperlinkAction extends FBAction {
|
|||
Reader.tryOpenFootnote(hyperlink.Id);
|
||||
break;
|
||||
}
|
||||
return;
|
||||
} else if (region instanceof ZLTextImageRegion) {
|
||||
Reader.getTextView().hideSelectedRegionBorder();
|
||||
Reader.repaintView();
|
||||
final String uriString = ((ZLTextImageRegion)region).ImageElement.URI;
|
||||
if (uriString != null) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue