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

authentication related things: updates

This commit is contained in:
Nikolay Pultsin 2011-10-16 01:23:47 +01:00
parent 67eab47313
commit bb9a9d7fa5
10 changed files with 159 additions and 137 deletions

View file

@ -246,11 +246,10 @@ public class AuthenticationActivity extends Activity {
private void runCustomAuthentication(final String username, final String password) {
final NetworkAuthenticationManager mgr = myLink.authenticationManager();
mgr.UserNameOption.setValue(username);
final Runnable runnable = new Runnable() {
public void run() {
try {
mgr.authorise(password);
mgr.authorise(username, password);
if (mgr.needsInitialization()) {
mgr.initialize();
}