We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a6dd32 commit 70f5a8dCopy full SHA for 70f5a8d
android/src/org/coolreader/CoolReader.java
@@ -747,7 +747,16 @@ private boolean processIntent(Intent intent) {
747
if (uri != null) {
748
fileToOpen = filePathFromUri(uri);
749
}
750
+ } else {
751
+ for (ReaderAction ra: ReaderAction.AVAILABLE_ACTIONS) {
752
+ String raIntentName = "org.coolreader.cmd." + ra.id;
753
+ if (raIntentName.equals(intent.getAction())) {
754
+ mReaderView.onCommand(ra.cmd, ra.param, null);
755
+ return true;
756
+ }
757
758
759
+
760
if (fileToOpen == null && intent.getExtras() != null) {
761
log.d("extras=" + intent.getExtras());
762
fileToOpen = intent.getExtras().getString(OPEN_FILE_PARAM);
0 commit comments