mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 18:29:23 +02:00
Merge branch 'master' into lr
This commit is contained in:
commit
f2d0622908
35 changed files with 126 additions and 17 deletions
|
@ -99,6 +99,14 @@ public abstract class Util implements UserRegistrationConstants {
|
|||
activity.startActivity(intent);
|
||||
}
|
||||
|
||||
public static boolean isOurLink(String url) {
|
||||
try {
|
||||
return Uri.parse(url).getHost().endsWith(".fbreader.org");
|
||||
} catch (Throwable t) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static void openInBrowser(Activity activity, String url) {
|
||||
if (url != null) {
|
||||
url = NetworkLibrary.Instance().rewriteUrl(url, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue