mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
separate package for items
This commit is contained in:
parent
8af4ac1414
commit
aa69a4f43f
12 changed files with 221 additions and 82 deletions
|
@ -39,7 +39,7 @@ import org.geometerplus.fbreader.network.urlInfo.UrlInfo;
|
|||
import org.geometerplus.android.util.UIUtil;
|
||||
import org.geometerplus.android.util.PackageUtil;
|
||||
|
||||
abstract class Util implements UserRegistrationConstants {
|
||||
public abstract class Util implements UserRegistrationConstants {
|
||||
private static final String REGISTRATION_ACTION =
|
||||
"android.fbreader.action.NETWORK_LIBRARY_REGISTER";
|
||||
|
||||
|
@ -47,7 +47,7 @@ abstract class Util implements UserRegistrationConstants {
|
|||
return url != null && PackageUtil.canBeStarted(activity, new Intent(action, Uri.parse(url)), true);
|
||||
}
|
||||
|
||||
static boolean isRegistrationSupported(Activity activity, INetworkLink link) {
|
||||
public static boolean isRegistrationSupported(Activity activity, INetworkLink link) {
|
||||
return testService(
|
||||
activity,
|
||||
REGISTRATION_ACTION,
|
||||
|
@ -55,7 +55,7 @@ abstract class Util implements UserRegistrationConstants {
|
|||
);
|
||||
}
|
||||
|
||||
static void runRegistrationDialog(Activity activity, INetworkLink link) {
|
||||
public static void runRegistrationDialog(Activity activity, INetworkLink link) {
|
||||
try {
|
||||
final Intent intent = new Intent(
|
||||
REGISTRATION_ACTION,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue