Minor fixes

This commit is contained in:
Tad 2018-10-21 22:46:05 -04:00
parent 68f5fee17c
commit 0d6cbddecb
13 changed files with 20 additions and 21 deletions

View file

@ -19,7 +19,7 @@
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden">
<intent-filter>

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2017-2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify
@ -47,11 +47,11 @@ public class DatabaseManager {
}
public static boolean isDatabaseAvailable(String name) {
return new File(databasePath + "/" + name).exists();
return new File(databasePath + "/" + name).exists();
}
public static void deteleDatabase(String name) {
new File(databasePath + "/" + name).delete();
new File(databasePath + "/" + name).delete();
}
public void loadRemoteDatabases() {

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2017-2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2017-2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify
@ -58,7 +58,7 @@ public class MainActivity extends FragmentActivity {
new Utils(this);
new DatabaseManager(this);
if(Utils.useTor()) {
if (Utils.useTor()) {
Utils.requestStartOrbot(this);
}
Utils.considerStartService(this);

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2017-2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2017-2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify
@ -55,8 +55,8 @@ public class SettingsFragment extends PreferenceFragmentCompat implements Shared
@Override
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
if(key.equals("network_use_tor")) {
if(prefs.getBoolean("network_use_tor", false)) {
if (key.equals("network_use_tor")) {
if (prefs.getBoolean("network_use_tor", false)) {
if (!Utils.isOrbotInstalled(getContext())) {
prefs.edit().putBoolean("ONION_ROUTING", false).apply();
Toast.makeText(getContext(), R.string.toast_orbot_unavailable, Toast.LENGTH_SHORT).show();
@ -64,8 +64,8 @@ public class SettingsFragment extends PreferenceFragmentCompat implements Shared
}
}
if(key.equals("scanner_realtime_enabled")) {
if(prefs.getBoolean("scanner_realtime_enabled", false)) {
if (key.equals("scanner_realtime_enabled")) {
if (prefs.getBoolean("scanner_realtime_enabled", false)) {
Utils.considerStartService(getContext());
} else {
Intent realtimeScanner = new Intent(getContext(), MalwareScannerService.class);

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2017-2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/*
Hypatia: An realtime malware scanner for Android
Hypatia: A realtime malware scanner for Android
Copyright (c) 2017-2018 Divested Computing, Inc.
This program is free software: you can redistribute it and/or modify

View file

@ -1,8 +1,7 @@
<resources>
<string name="app_name">Hypatia</string>
<string name="app_name">Hypatia V3</string>
<!-- START MainActivity -->
<string name="title_activity_main">Hypatia</string>
<string name="title_scanner">Scanner</string>
<string name="title_log">History</string>
<string name="title_databases">Databases</string>