mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-30 15:29:51 +00:00
3dfx debug version
This commit is contained in:
parent
2e1f4e9256
commit
e93c1b361e
4861 changed files with 108 additions and 868337 deletions
|
|
@ -25,13 +25,8 @@ import android.widget.ScrollView;
|
|||
import android.widget.TextView;
|
||||
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.multidex.MultiDex;
|
||||
import androidx.multidex.MultiDexApplication;
|
||||
|
||||
import com.google.android.material.color.DynamicColors;
|
||||
import com.iiordanov.bVNC.Constants;
|
||||
import com.iiordanov.bVNC.Database;
|
||||
import com.iiordanov.bVNC.Utils;
|
||||
import com.vectras.qemu.MainSettingsManager;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
|
|
@ -52,22 +47,15 @@ import java.util.Date;
|
|||
import java.util.LinkedHashMap;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
public class VectrasApp extends MultiDexApplication {
|
||||
public class VectrasApp extends Application {
|
||||
public static VectrasApp vectrasapp;
|
||||
public static boolean debugLog = false;
|
||||
private static WeakReference<Context> context;
|
||||
private Database database;
|
||||
|
||||
public static Context getContext() {
|
||||
return context.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void attachBaseContext(Context base) {
|
||||
super.attachBaseContext(base);
|
||||
MultiDex.install(getBaseContext());
|
||||
}
|
||||
|
||||
private static Handler MAIN_HANDLER = new Handler(Looper.getMainLooper());
|
||||
|
||||
@Override
|
||||
|
|
@ -83,23 +71,6 @@ public class VectrasApp extends MultiDexApplication {
|
|||
}
|
||||
setModeNight(this);
|
||||
DynamicColors.applyToActivitiesIfAvailable(this);
|
||||
|
||||
//spice
|
||||
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
|
||||
Constants.DEFAULT_PROTOCOL_PORT = Utils.getDefaultPort(this);
|
||||
database = new Database(this);
|
||||
context = new WeakReference<Context>(this);
|
||||
debugLog = Utils.querySharedPreferenceBoolean(getApplicationContext(), "moreDebugLoggingTag");
|
||||
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
@Override
|
||||
public void uncaughtException(Thread t, Throwable e) {
|
||||
Log.e("TAG", "An uncaught exception was encountered in thread: " + t.getName(), e);
|
||||
}
|
||||
});
|
||||
}
|
||||
public Database getDatabase() {
|
||||
return database;
|
||||
}
|
||||
|
||||
private void setModeNight(Context context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue