mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
repeated book opening issue
This commit is contained in:
parent
1cbb8af49b
commit
39ab7ebb88
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
===== 1.4.4 (Apr ??, 2012) =====
|
||||
* introduced jni C++ wrappers (this avoids incorrect method calls)
|
||||
* fixed repeated book opening issue
|
||||
|
||||
===== 1.4.3 (Mar 29, 2012) =====
|
||||
* fixed fb2 books opening issue
|
||||
|
|
|
@ -193,7 +193,10 @@ public abstract class ZLAndroidActivity extends Activity {
|
|||
@Override
|
||||
protected void onNewIntent(Intent intent) {
|
||||
super.onNewIntent(intent);
|
||||
ZLApplication.Instance().openFile(fileFromIntent(intent), null);
|
||||
final String action = intent.getAction();
|
||||
if (Intent.ACTION_VIEW.equals(action) || "android.fbreader.action.VIEW".equals(action)) {
|
||||
ZLApplication.Instance().openFile(fileFromIntent(intent), null);
|
||||
}
|
||||
}
|
||||
|
||||
private static ZLAndroidLibrary getLibrary() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue