Moved construction to onCreate.

This commit is contained in:
Armin Novak
2017-02-24 11:30:04 +01:00
parent eeee92a309
commit 05f6dac204

View File

@@ -54,12 +54,6 @@ public class GlobalApp extends Application implements LibFreeRDP.EventListener {
// timer for disconnecting sessions after the screen was turned off
private static Timer disconnectTimer = null;
public GlobalApp() {
sessionMap = Collections.synchronizedMap(new HashMap<Long, SessionState>());
LibFreeRDP.setEventListener(this);
}
public static ManualBookmarkGateway getManualBookmarkGateway() {
return manualBookmarkGateway;
}
@@ -123,6 +117,10 @@ public class GlobalApp extends Application implements LibFreeRDP.EventListener {
/* Initialize preferences. */
ApplicationSettingsActivity.get(this);
sessionMap = Collections.synchronizedMap(new HashMap<Long, SessionState>());
LibFreeRDP.setEventListener(this);
bookmarkDB = new BookmarkDB(this);
manualBookmarkGateway = new ManualBookmarkGateway(bookmarkDB);