1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 19:42:17 +02:00

refill account summary fix

git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1398 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
Vasiliy Bout 2010-05-13 20:19:45 +00:00
parent f1e111f2a4
commit cd8580a3b7
9 changed files with 53 additions and 42 deletions

View file

@ -46,19 +46,19 @@ class RefillAccountTree extends NetworkTree {
@Override
public String getName() {
final NetworkAuthenticationManager mgr = Link.authenticationManager();
if (mgr.isAuthorised(false).Status == ZLBoolean3.B3_TRUE) {
final String account = mgr.currentAccount();
if (account != null) {
return ZLResource.resource("networkView").getResource("refillAccount").getValue().replace("%s", account);
}
}
return ZLResource.resource("networkView").getResource("refillShort").getValue();
return ZLResource.resource("networkView").getResource("refillTitle").getValue();
}
@Override
public String getSummary() {
return ZLResource.resource("networkView").getResource("refillSummary").getValue();
final NetworkAuthenticationManager mgr = Link.authenticationManager();
if (mgr.isAuthorised(false).Status == ZLBoolean3.B3_TRUE) {
final String account = mgr.currentAccount();
if (account != null) {
return ZLResource.resource("networkView").getResource("refillSummary").getValue().replace("%s", account);
}
}
return null;
}
@Override