mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
new items in topup menu
This commit is contained in:
parent
bc761e9473
commit
264972a3c4
2 changed files with 32 additions and 18 deletions
|
@ -215,9 +215,8 @@ abstract class Util implements UserRegistrationConstants {
|
|||
}
|
||||
}
|
||||
|
||||
static void runTopupDialog(Activity activity, INetworkLink link, String actionId) {
|
||||
static void runTopupDialogWithUrl(Activity activity, INetworkLink link, String url) {
|
||||
try {
|
||||
final String url = link.getUrl(UrlInfo.Type.Catalog) + "/" + actionId;
|
||||
final Intent intent = new Intent(TOPUP_ACTION, Uri.parse(url));
|
||||
final NetworkAuthenticationManager mgr = link.authenticationManager();
|
||||
if (mgr != null) {
|
||||
|
@ -232,6 +231,11 @@ abstract class Util implements UserRegistrationConstants {
|
|||
}
|
||||
}
|
||||
|
||||
static void runTopupDialog(Activity activity, INetworkLink link, String actionId) {
|
||||
final String url = link.getUrl(UrlInfo.Type.Catalog) + "/" + actionId;
|
||||
runTopupDialogWithUrl(activity, link, url);
|
||||
}
|
||||
|
||||
static void openInBrowser(Context context, String url) {
|
||||
if (url != null) {
|
||||
url = NetworkLibrary.Instance().rewriteUrl(url, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue