mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Modify Fit Screen option to not require global context object
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user