Modify Fit Screen option to not require global context object

This commit is contained in:
Todd McKinney 2013-09-13 14:54:28 -05:00
parent 999c571335
commit 311da04720

View File

@ -12,7 +12,6 @@ package com.freerdp.freerdpcore.application;
import android.app.Application;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Resources;
import android.util.Log;
import java.util.*;
@ -51,7 +50,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 static GlobalApp instance = null;
// TimerTask for disconnecting sessions after screen was turned off
private static class DisconnectTask extends TimerTask
@ -90,7 +88,6 @@ public class GlobalApp extends Application implements LibFreeRDP.EventListener
quickConnectHistoryGateway = new QuickConnectHistoryGateway(historyDB);
GlobalSettings.init(this);
instance = this;
ConnectedTo3G = NetworkStateReceiver.isConnectedTo3G(this);
// init screen receiver here (this can't be declared in AndroidManifest - refer to: