mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-03-01 05:48:23 +03:00
Tweaks
This commit is contained in:
parent
23774983ab
commit
e889bbce4a
3 changed files with 3 additions and 4 deletions
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
|
@ -24,7 +24,7 @@
|
||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
|
@ -24,9 +24,8 @@ class Database {
|
||||||
public final static HashMap<String, String> signaturesSHA1 = new HashMap<>();
|
public final static HashMap<String, String> signaturesSHA1 = new HashMap<>();
|
||||||
public final static HashMap<String, String> signaturesSHA256 = new HashMap<>();
|
public final static HashMap<String, String> signaturesSHA256 = new HashMap<>();
|
||||||
|
|
||||||
public Database(Context context, TextView log) {
|
public Database(TextView log) {
|
||||||
Database.log = log;
|
Database.log = log;
|
||||||
initDatabase(context);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean areDatabasesAvailable() {
|
public static boolean areDatabasesAvailable() {
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
logView.append("Powered by ClamAV signatures\n");
|
logView.append("Powered by ClamAV signatures\n");
|
||||||
logView.append("\nDisclaimer: This is an extremely basic signature scanner\n\n");
|
logView.append("\nDisclaimer: This is an extremely basic signature scanner\n\n");
|
||||||
|
|
||||||
final Database database = new Database(this, logView);
|
final Database database = new Database(logView);
|
||||||
malwareScanner = new MalwareScanner(this, this, true);
|
malwareScanner = new MalwareScanner(this, this, true);
|
||||||
|
|
||||||
prefs = getSharedPreferences(BuildConfig.APPLICATION_ID, Context.MODE_PRIVATE);
|
prefs = getSharedPreferences(BuildConfig.APPLICATION_ID, Context.MODE_PRIVATE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue