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:
parent
b8090e6035
commit
238dffe60f
3 changed files with 14 additions and 1 deletions
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue