mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Moved construction to onCreate.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user