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

misc fixes

This commit is contained in:
Nikolay Pultsin 2010-12-23 05:07:52 +00:00
parent b4f14df970
commit 98470c95ae
3 changed files with 9 additions and 20 deletions

View file

@ -20,6 +20,7 @@
package org.geometerplus.android.fbreader.network;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
@ -30,10 +31,13 @@ import org.geometerplus.fbreader.network.authentication.NetworkAuthenticationMan
abstract class Util implements UserRegistrationConstants {
static void runRegistrationDialog(Activity activity, INetworkLink link) {
activity.startActivityForResult(new Intent(
"android.fbreader.action.NETWORK_LIBRARY_REGISTER",
Uri.parse(link.getLink(INetworkLink.URL_SIGN_UP))
), USER_REGISTRATION_REQUEST_CODE);
try {
activity.startActivityForResult(new Intent(
"android.fbreader.action.NETWORK_LIBRARY_REGISTER",
Uri.parse(link.getLink(INetworkLink.URL_SIGN_UP))
), USER_REGISTRATION_REQUEST_CODE);
} catch (ActivityNotFoundException e) {
}
}
static void runAfterRegistration(NetworkAuthenticationManager mgr, Intent data) throws ZLNetworkException {