Skip to content

Commit

Permalink
fixed action hyperlinks issue
Browse files Browse the repository at this point in the history
  • Loading branch information
geometer committed Feb 15, 2013
1 parent 30281ea commit 7203999
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion TODO.libraryService
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DELAYED move BookCollection to libraryService package; change access rights to p

bugs:
* trim author names in fb2 (and may be in other formats)
* action hyperlinks
DONE action hyperlinks
* double tap only for action bar
* text search => found multiple occurencies => turn page right => right button is disabled

Expand Down
10 changes: 3 additions & 7 deletions src/org/geometerplus/android/fbreader/FBReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,13 @@ protected void onNewIntent(final Intent intent) {

if ((intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0) {
super.onNewIntent(intent);
} else if (Intent.ACTION_VIEW.equals(action) || ACTION_OPEN_BOOK.equals(action)) {
getCollection().bindToService(this, new Runnable() {
public void run() {
openBook(intent, null, true);
}
});
} else if (Intent.ACTION_VIEW.equals(action)
&& data != null && "fbreader-action".equals(data.getScheme())) {
myFBReaderApp.runAction(data.getEncodedSchemeSpecificPart(), data.getFragment());
} else if (Intent.ACTION_VIEW.equals(action) || ACTION_OPEN_BOOK.equals(action)) {
getCollection().bindToService(this, new Runnable() {
public void run() {
myFBReaderApp.runAction(data.getEncodedSchemeSpecificPart(), data.getFragment());
openBook(intent, null, true);
}
});
} else if (Intent.ACTION_SEARCH.equals(action)) {
Expand Down

0 comments on commit 7203999

Please sign in to comment.