1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-06 03:50:19 +02:00

book:// scheme support

This commit is contained in:
Nikolay Pultsin 2011-10-03 14:05:12 +01:00
parent b8090e6035
commit 238dffe60f
3 changed files with 14 additions and 1 deletions

View file

@ -127,6 +127,12 @@
<data android:host="*rus.ec" android:mimeType="application/zip" android:scheme="http" />
<data android:host="lib.ololo.cc" android:mimeType="application/zip" android:scheme="http" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="*" android:scheme="book" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />

View file

@ -127,6 +127,12 @@
<data android:host="*rus.ec" android:mimeType="application/zip" android:scheme="http" />
<data android:host="lib.ololo.cc" android:mimeType="application/zip" android:scheme="http" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="*" android:scheme="book" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />

View file

@ -36,7 +36,8 @@ public class BookDownloader extends Activity {
return false;
}
if ("epub".equals(uri.getScheme())) {
final String scheme = uri.getScheme();
if ("epub".equals(scheme) || "book".equals(scheme)) {
return true;
}